mirror of
https://github.com/python/cpython.git
synced 2025-12-20 15:41:13 +00:00
Fixes bpo-29680: Older gdb does not have gdb.error. (GH-363) (GH-534)
This change is required to make python-dbg.py compatible with GDB versions before 7.3.
(cherry picked from commit 661ca8843f)
This commit is contained in:
parent
33d70d1721
commit
23b26c4e20
1 changed files with 1 additions and 1 deletions
|
|
@ -714,7 +714,7 @@ class PyDictObjectPtr(PyObjectPtr):
|
|||
try:
|
||||
# <= Python 3.5
|
||||
return keys['dk_entries'], dk_size
|
||||
except gdb.error:
|
||||
except RuntimeError:
|
||||
# >= Python 3.6
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue