mercurial/lsprof.py
changeset 9314 3f93f6838639
parent 7875 553aa0cbeab6
child 9316 23cf7b52785a
--- a/mercurial/lsprof.py	Wed Aug 05 17:19:08 2009 +0200
+++ b/mercurial/lsprof.py	Wed Aug 05 14:58:30 2009 +0200
@@ -87,7 +87,7 @@
     try:
         mname = _fn2mod[code.co_filename]
     except KeyError:
-        for k, v in sys.modules.iteritems():
+        for k, v in list(sys.modules.iteritems()):
             if v is None:
                 continue
             if not hasattr(v, '__file__'):