mercurial/lsprof.py
changeset 7622 4dd7b28003d2
parent 7008 8fee8ff13d37
child 7875 553aa0cbeab6
--- a/mercurial/lsprof.py	Mon Jan 12 09:07:02 2009 +0100
+++ b/mercurial/lsprof.py	Mon Jan 12 09:16:03 2009 +0100
@@ -88,7 +88,7 @@
     try:
         mname = _fn2mod[code.co_filename]
     except KeyError:
-        for k, v in sys.modules.items():
+        for k, v in sys.modules.iteritems():
             if v is None:
                 continue
             if not hasattr(v, '__file__'):