~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lsprof.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-14 21:31:05 UTC
  • mfrom: (1711.2.124 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060814213105-9c0d22f04d44049e
cfbolz: use sys.modules.items() in lsprof.py

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__'):