[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP - HTTPRequest.py:1.1.2.25

Fred L. Drake, Jr. fdrake@acm.org
Wed, 10 Apr 2002 18:45:37 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/HTTP
In directory cvs.zope.org:/tmp/cvs-serv830/HTTP

Modified Files:
      Tag: Zope-3x-branch
	HTTPRequest.py 
Log Message:
Use the random module instead of the deprecated whrandom module.
whrandom triggers a DeprecationWarning when using CVS Python.


=== Zope3/lib/python/Zope/Publisher/HTTP/HTTPRequest.py 1.1.2.24 => 1.1.2.25 ===
 """
 
-import re, time, whrandom
+import re, time, random
 from urllib import quote, splitport
 from types import StringType
 
@@ -295,7 +295,7 @@
         'See Zope.Publisher.IPublisherRequest.IPublisherRequest'
         if self._retry_count < self.retry_max_count:
             if STAGGER_RETRIES:
-                time.sleep(whrandom.uniform(0, 2**(self.retry_count)))
+                time.sleep(random.uniform(0, 2**(self.retry_count)))
             return 1