Mercurial > public > mercurial-scm > hg-stable
diff mercurial/lsprof.py @ 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 | 553aa0cbeab6 |
children | 23cf7b52785a |
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__'):