mercurial/lsprof.py
changeset 9316 23cf7b52785a
parent 9032 1fa80c5428b8
parent 9314 3f93f6838639
child 10339 23e608f42f2c
--- a/mercurial/lsprof.py	Wed Aug 05 17:08:28 2009 +0200
+++ b/mercurial/lsprof.py	Wed Aug 05 17:21:29 2009 +0200
@@ -85,7 +85,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__'):