[Zope-Checkins] SVN: Zope/branches/2.12/src/Zope2/utilities/requestprofiler.py Backport r124566 from the trunk.
Tres Seaver
cvs-admin at zope.org
Sun Mar 11 16:44:09 UTC 2012
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,
More information about the Zope-Checkins
mailing list