[Checkins] SVN:	Zope/branches/2.13/src/Zope2/utilities/requestprofiler.py	Backport r124566 from the trunk.
    Tres Seaver 
    cvs-admin at zope.org
       
    Sun Mar 11 16:46:12 UTC 2012
    
    
  
Log message for revision 124570:
  Backport r124566 from the trunk.
Changed:
  U   Zope/branches/2.13/src/Zope2/utilities/requestprofiler.py
-=-
Modified: Zope/branches/2.13/src/Zope2/utilities/requestprofiler.py
===================================================================
--- Zope/branches/2.13/src/Zope2/utilities/requestprofiler.py	2012-03-11 16:44:59 UTC (rev 124569)
+++ Zope/branches/2.13/src/Zope2/utilities/requestprofiler.py	2012-03-11 16:46:09 UTC (rev 124570)
@@ -813,7 +813,7 @@
         elif mode=='urlfocus':
             sortf = Sort('start', ascending=1)
         else:
-            raise 'Invalid mode'
+            raise ValueError('Invalid mode')
 
         req=get_requests(files, start, end, statsfname, writestats, readstats)
         analyze(req, top, sortf, start, end, mode, resolution, urlfocusurl,
    
    
More information about the checkins
mailing list