changeset 9314:3f93f6838639

lsprof: make profile not die when imported modules changes (issue1774)
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 05 Aug 2009 14:58:30 +0200
parents 8736b1c853ff
children fb66a7d3f28f
files mercurial/lsprof.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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__'):