diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-03-12 02:17:17 -0700 |
|---|---|---|
| committer | Victor Stinner <vstinner@redhat.com> | 2019-03-12 10:17:17 +0100 |
| commit | 047f8f25b93e2649d234fa565a59383fceb40e16 (patch) | |
| tree | d78db77c04d519c14288d7a9fb8bdb3e73d3ecf4 /Tools/gdb/libpython.py | |
| parent | 1c4580d1f563173f5d6ec990b46bd38f4ae901a1 (diff) | |
| download | cpython-git-047f8f25b93e2649d234fa565a59383fceb40e16.tar.gz | |
bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848) (GH-12284)
(cherry picked from commit 1ceb3a3d172dcf0ddff38d5d6b559443ad065b84)
Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
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 bfaa9403b7..d744cab764 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -1178,7 +1178,7 @@ class PyUnicodeObjectPtr(PyObjectPtr): def proxyval(self, visited): global _is_pep393 if _is_pep393 is None: - fields = gdb.lookup_type('PyUnicodeObject').target().fields() + fields = gdb.lookup_type('PyUnicodeObject').fields() _is_pep393 = 'data' in [f.name for f in fields] if _is_pep393: # Python 3.3 and newer |
