diff options
author | Lev Abalkin <abalkin@users.noreply.github.com> | 2017-03-01 18:16:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 18:16:23 (GMT) |
commit | 661ca8843fed1183e38db06e52d59ac300bf1c2a (patch) | |
tree | 8b5efe7ec3738bb8f083f61f5a62eab695314437 /Tools | |
parent | 3c6314c08d8ab1cfefbf6c2e27c095a7d4ba5f6e (diff) | |
download | cpython-661ca8843fed1183e38db06e52d59ac300bf1c2a.zip cpython-661ca8843fed1183e38db06e52d59ac300bf1c2a.tar.gz cpython-661ca8843fed1183e38db06e52d59ac300bf1c2a.tar.bz2 |
Fixes bpo-29680: Older gdb does not have gdb.error. (#363)
This change is required to make python-dbg.py compatible with GDB versions before 7.3.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/gdb/libpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index 4f45256..0e9df2b 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -715,7 +715,7 @@ class PyDictObjectPtr(PyObjectPtr): try: # <= Python 3.5 return keys['dk_entries'], dk_size - except gdb.error: + except RuntimeError: # >= Python 3.6 pass |