Log message for revision 72008:
  removed 'types' imports
  

Changed:
  U   Zope/trunk/lib/python/ZServer/FCGIServer.py
  U   Zope/trunk/lib/python/ZServer/HTTPResponse.py
  U   Zope/trunk/lib/python/ZServer/HTTPServer.py
  U   Zope/trunk/lib/python/ZServer/PCGIServer.py

-=-
Modified: Zope/trunk/lib/python/ZServer/FCGIServer.py
===================================================================
--- Zope/trunk/lib/python/ZServer/FCGIServer.py 2007-01-13 12:28:26 UTC (rev 
72007)
+++ Zope/trunk/lib/python/ZServer/FCGIServer.py 2007-01-13 15:27:12 UTC (rev 
72008)
@@ -46,7 +46,6 @@
 from tempfile import TemporaryFile
 import socket, string, os, sys, time
 import thread
-from types import StringTypes
 import base64
 
 tz_for_log = compute_timezone_for_log()
@@ -573,7 +572,7 @@
         self.closed=1
         while self.producer_fifo:
             p=self.producer_fifo.first()
-            if p is not None and not isinstance(p, StringTypes):
+            if p is not None and not isinstance(p, basestring):
                 p.more() # free up resources held by producer
             self.producer_fifo.pop()
         asyncore.dispatcher.close(self)

Modified: Zope/trunk/lib/python/ZServer/HTTPResponse.py
===================================================================
--- Zope/trunk/lib/python/ZServer/HTTPResponse.py       2007-01-13 12:28:26 UTC 
(rev 72007)
+++ Zope/trunk/lib/python/ZServer/HTTPResponse.py       2007-01-13 15:27:12 UTC 
(rev 72008)
@@ -29,7 +29,6 @@
 import asyncore
 from Producers import ShutdownProducer, LoggingProducer, CallbackProducer, \
     file_part_producer, file_close_producer, iterator_producer
-from types import LongType
 import DebugLogger
 
 

Modified: Zope/trunk/lib/python/ZServer/HTTPServer.py
===================================================================
--- Zope/trunk/lib/python/ZServer/HTTPServer.py 2007-01-13 12:28:26 UTC (rev 
72007)
+++ Zope/trunk/lib/python/ZServer/HTTPServer.py 2007-01-13 15:27:12 UTC (rev 
72008)
@@ -38,7 +38,6 @@
 import thread
 import time
 import socket
-from types import StringTypes
 from cStringIO import StringIO
 
 from PubCore import handle
@@ -383,7 +382,7 @@
             self.current_request=None
         while self.producer_fifo:
             p=self.producer_fifo.first()
-            if p is not None and not isinstance(p, StringTypes):
+            if p is not None and not isinstance(p, basestring):
                 p.more() # free up resources held by producer
             self.producer_fifo.pop()
         dispatcher.close(self)

Modified: Zope/trunk/lib/python/ZServer/PCGIServer.py
===================================================================
--- Zope/trunk/lib/python/ZServer/PCGIServer.py 2007-01-13 12:28:26 UTC (rev 
72007)
+++ Zope/trunk/lib/python/ZServer/PCGIServer.py 2007-01-13 15:27:12 UTC (rev 
72008)
@@ -47,7 +47,6 @@
 from cStringIO import StringIO
 from tempfile import TemporaryFile
 import socket, string, os, sys, time
-from types import TupleType, StringTypes
 
 tz_for_log=compute_timezone_for_log()
 
@@ -163,7 +162,7 @@
         else:
             method="GET"
         addr=self.addr
-        if addr and type(addr) is TupleType:
+        if addr and isinstance(addr, tuple):
             self.server.logger.log (
                 addr[0],
                 '%d - - [%s] "%s %s" %d %d "%s" "%s"' % (
@@ -203,7 +202,7 @@
         self.closed=1
         while self.producer_fifo:
             p=self.producer_fifo.first()
-            if p is not None and not isinstance(p, StringTypes):
+            if p is not None and not isinstance(p, basestring):
                 p.more() # free up resources held by producer
             self.producer_fifo.pop()
         asyncore.dispatcher.close(self)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to