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

Tres Seaver <[email protected]> Sun, 11 Mar 2012 12:44:09 -0400 (EDT)
Newsgroups gmane.comp.web.zope.cvs
Message-ID <20120311164409.14A85941C9__16496.0130503916$1331484257$gmane$org@cvs.zope.org>
Log message for revision 124568:
  Backport r124566 from the trunk.

Changed:
  U   Zope/branches/2.12/src/Zope2/utilities/requestprofiler.py

-=-
Modified: Zope/branches/2.12/src/Zope2/utilities/requestprofiler.py
===================================================================
--- Zope/branches/2.12/src/Zope2/utilities/requestprofiler.py	2012-03-11 16:43:08 UTC (rev 124567)
+++ Zope/branches/2.12/src/Zope2/utilities/requestprofiler.py	2012-03-11 16:44:05 UTC (rev 124568)
@@ -814,7 +814,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