From 4d729bf9868fc43a9fd9777af1054993f401ea2c Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Thu, 27 Oct 2016 23:12:35 -0700 Subject: [PATCH] Use `items` instead of `iteritems` for Python 3 compatibility --- lib/cretonne/meta/cretonne/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cretonne/meta/cretonne/__init__.py b/lib/cretonne/meta/cretonne/__init__.py index 6672d6d869..a3f0634b94 100644 --- a/lib/cretonne/meta/cretonne/__init__.py +++ b/lib/cretonne/meta/cretonne/__init__.py @@ -184,7 +184,7 @@ class SettingGroup(object): .format(self, SettingGroup._current)) SettingGroup._current = None if globs: - for name, obj in globs.iteritems(): + for name, obj in globs.items(): if isinstance(obj, Setting): assert obj.name is None, obj.name obj.name = name @@ -761,7 +761,7 @@ class InstructionFormat(object): all the InstructionFormat objects and set their name from the dict key. This is used to name a bunch of global variables in a module. """ - for name, obj in globs.iteritems(): + for name, obj in globs.items(): if isinstance(obj, InstructionFormat): assert obj.name is None obj.name = name