~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lsprof.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-14 21:21:30 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1920.
  • Revision ID: john@arbash-meinel.com-20060814212130-aabd635bd9190980
Use sys.modules.items() to prevent running into site.py problems

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
    try:
163
163
        mname = _fn2mod[code.co_filename]
164
164
    except KeyError:
165
 
        for k, v in sys.modules.iteritems():
 
165
        for k, v in sys.modules.items():
166
166
            if v is None:
167
167
                continue
168
168
            if not hasattr(v, '__file__'):