Index: tools/opt-viewer/optrecord.py =================================================================== --- tools/opt-viewer/optrecord.py +++ tools/opt-viewer/optrecord.py @@ -80,7 +80,7 @@ def _reduce_memory_dict(old_dict): new_dict = dict() - for (k, v) in old_dict.iteritems(): + for (k, v) in iteritems(old_dict): if type(k) is str: k = intern(k)