Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 882

Show
Ignore:
Timestamp:
12/23/05 16:24:28
Author:
fumanchu
Message:

Oops. Debian is missing the pstats module too.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/profiler.py

    r881 r882  
    3939        return os.path.basename(filename[:-12]) + filename[-12:], line, name 
    4040    return os.path.basename(filename), line, name 
    41 import pstats 
    42 pstats.func_strip_path = new_func_strip_path 
    4341 
    4442try: 
    4543    import profile 
     44    import pstats 
     45    pstats.func_strip_path = new_func_strip_path 
    4646except ImportError: 
    4747    profile = None 
     48    pstats = None 
    4849    import warnings 
    4950    msg = ("Your installation of Python doesn't have a profile module. " 

Hosted by WebFaction

Log in as guest/cpguest to create tickets