diff --git a/wxPython/wx/__init__.py b/wxPython/wx/__init__.py index 4a85ad6143..13f57289b8 100644 --- a/wxPython/wx/__init__.py +++ b/wxPython/wx/__init__.py @@ -13,7 +13,7 @@ import types d_new = globals() d_old = wx.__dict__ -for old, obj in d_old.iteritems(): +for old, obj in d_old.items(): if type(obj) is types.ModuleType or old.startswith('_'): # Skip modules and private names. continue diff --git a/wxPython/wx/prefix.py b/wxPython/wx/prefix.py index 3c7fdff2ce..f664818e1b 100644 --- a/wxPython/wx/prefix.py +++ b/wxPython/wx/prefix.py @@ -9,7 +9,7 @@ __revision__ = "$Revision$"[11:-2] import types def rename(d_new, d_old): - for old, obj in d_old.iteritems(): + for old, obj in d_old.items(): if type(obj) is types.ModuleType or old.startswith('_'): # Skip modules and private names. continue