diff options
author | Lev Abalkin <abalkin@users.noreply.github.com> | 2017-03-01 13:16:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 13:16:23 -0500 |
commit | 661ca8843fed1183e38db06e52d59ac300bf1c2a (patch) | |
tree | 8b5efe7ec3738bb8f083f61f5a62eab695314437 /Tools/gdb/libpython.py | |
parent | 3c6314c08d8ab1cfefbf6c2e27c095a7d4ba5f6e (diff) | |
download | cpython-git-661ca8843fed1183e38db06e52d59ac300bf1c2a.tar.gz |
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/gdb/libpython.py')
-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 4f45256188..0e9df2bd52 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 |