[Checkins] SVN: z3ext.profiler/trunk/src/z3ext/profiler/profiler.py python2.4 compatibility fix

Nikolay Kim fafhrd91 at gmail.com
Thu May 7 05:08:01 EDT 2009


Log message for revision 99795:
  python2.4 compatibility fix

Changed:
  U   z3ext.profiler/trunk/src/z3ext/profiler/profiler.py

-=-
Modified: z3ext.profiler/trunk/src/z3ext/profiler/profiler.py
===================================================================
--- z3ext.profiler/trunk/src/z3ext/profiler/profiler.py	2009-05-06 18:37:42 UTC (rev 99794)
+++ z3ext.profiler/trunk/src/z3ext/profiler/profiler.py	2009-05-07 09:08:00 UTC (rev 99795)
@@ -16,7 +16,7 @@
 $Id$
 """
 import time
-import cProfile
+import profile
 from threading import RLock
 
 from zope.app.wsgi import WSGIPublisherApplication
@@ -33,7 +33,7 @@
         environ.get('REQUEST_URI', '').endswith('z3ext.profiler')):
         return orig_call(self, environ, start_response)
 
-    prof = cProfile.Profile(time.time)
+    prof = profile.Profile(time.time)
     response = prof.runcall(orig_call, self, environ, start_response)
     
     lock= _lock



More information about the Checkins mailing list