diff -r 6d891df43a5f -r 4dd7b28003d2 mercurial/lsprof.py --- 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__'):