Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-42726: gdb/libpython.py fix bug with py3
  • Loading branch information
hackaugusto committed Dec 24, 2020
commit 0e31076e06537bb2597be5e849bfec3da66068c1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed compatibility issue with gdb/libpython.py handling of attribute
dictionaries.
2 changes: 1 addition & 1 deletion Tools/gdb/libpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def __init__(self, cl_name, attrdict, address):
def __repr__(self):
Comment thread
hackaugusto marked this conversation as resolved.
Outdated
if isinstance(self.attrdict, dict):
kwargs = ', '.join(["%s=%r" % (arg, val)
for arg, val in self.attrdict.iteritems()])
for arg, val in self.attrdict.items()])
return '<%s(%s) at remote 0x%x>' % (self.cl_name,
kwargs, self.address)
else:
Expand Down