Skip to content

Commit 0e31076

Browse files
committed
bpo-42726: gdb/libpython.py fix bug with py3
1 parent a9ef95b commit 0e31076

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed compatibility issue with gdb/libpython.py handling of attribute
2+
dictionaries.

Tools/gdb/libpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def __init__(self, cl_name, attrdict, address):
468468
def __repr__(self):
469469
if isinstance(self.attrdict, dict):
470470
kwargs = ', '.join(["%s=%r" % (arg, val)
471-
for arg, val in self.attrdict.iteritems()])
471+
for arg, val in self.attrdict.items()])
472472
return '<%s(%s) at remote 0x%x>' % (self.cl_name,
473473
kwargs, self.address)
474474
else:

0 commit comments

Comments
 (0)