[Repoze-checkins] r1152 - repoze.debug/trunk/repoze/debug

Chris McDonough chrism at agendaless.com
Fri Jun 27 20:33:06 EDT 2008


Author: Chris McDonough <chrism at agendaless.com>
Date: Fri Jun 27 20:33:06 2008
New Revision: 1152

Log:
THinkos.


Modified:
   repoze.debug/trunk/repoze/debug/responselogger.py

Modified: repoze.debug/trunk/repoze/debug/responselogger.py
==============================================================================
--- repoze.debug/trunk/repoze/debug/responselogger.py	(original)
+++ repoze.debug/trunk/repoze/debug/responselogger.py	Fri Jun 27 20:33:06 2008
@@ -1,4 +1,3 @@
-import math
 import time
 import threading
 
@@ -168,7 +167,7 @@
             _CURRENT_PERIOD = this_period
             _PERIOD_COUNTER = 0
         if _PERIOD_COUNTER > max:
-            raise ValueError('more than %s items within %s period' % period)
+            raise ValueError('> %s items within %s period' % (max, period))
         result = when + (_PERIOD_COUNTER / float(max))
         _PERIOD_COUNTER += 1
     finally:


More information about the Repoze-checkins mailing list