SVN: Zope/branches/2.13/src/Zope2/utilities/requestprofiler.py Backport r124566 from the trunk.

Tres Seaver <[email protected]> Sun, 11 Mar 2012 12:46:12 -0400 (EDT)
Newsgroups gmane.comp.web.zope.cvs
Message-ID <[email protected]>
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,

_______________________________________________
Zope-Checkins maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-checkins