[Zope3-checkins] CVS: Zope3/src/zope/server - maxsockets.py:1.3

Jeremy Hylton jeremy@zope.com
Thu, 6 Feb 2003 12:42:20 -0500


Update of /cvs-repository/Zope3/src/zope/server
In directory cvs.zope.org:/tmp/cvs-serv8385

Modified Files:
	maxsockets.py 
Log Message:
Silence DeprecationWarning in Python 2.3: range() does not want
floats.


=== Zope3/src/zope/server/maxsockets.py 1.2 => 1.3 ===
--- Zope3/src/zope/server/maxsockets.py:1.2	Wed Dec 25 09:15:23 2002
+++ Zope3/src/zope/server/maxsockets.py	Thu Feb  6 12:42:14 2003
@@ -51,7 +51,7 @@
     while 1:
         try:
             num = len(sl)
-            for i in range(1 + len(sl) * 0.05):
+            for i in range(1 + len(sl) // 20):
                 # Increase exponentially.
                 s = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
                 s.bind (('',0))