From 55ec5d78267362c2a30d9c04069caf15b3a51e84 Mon Sep 17 00:00:00 2001 From: Shaheed Haque Date: Sat, 28 Dec 2013 11:16:53 +0000 Subject: [PATCH] Use correct Python2/3 compatibility iterator. --- elftools/dwarf/die.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elftools/dwarf/die.py b/elftools/dwarf/die.py index 7cdefb5..91c0d0b 100644 --- a/elftools/dwarf/die.py +++ b/elftools/dwarf/die.py @@ -9,7 +9,7 @@ from collections import namedtuple import os -from ..common.py3compat import OrderedDict, bytes2str +from ..common.py3compat import OrderedDict, bytes2str, iteritems from ..common.utils import struct_parse, preserve_stream_pos @@ -143,7 +143,7 @@ class DIE(object): def __repr__(self): s = 'DIE %s, size=%s, has_chidren=%s\n' % ( self.tag, self.size, self.has_children) - for attrname, attrval in self.attributes.iteritems(): + for attrname, attrval in iteritems(self.attributes): s += ' |%-18s: %s\n' % (attrname, attrval) return s -- 2.30.2