[Checkins] SVN: zc.ngi/trunk/src/zc/ngi/async.py Cleaned up trailing whitespace.

Jim Fulton jim at zope.com
Mon Apr 13 12:46:52 EDT 2009


Log message for revision 99152:
  Cleaned up trailing whitespace.
  

Changed:
  U   zc.ngi/trunk/src/zc/ngi/async.py

-=-
Modified: zc.ngi/trunk/src/zc/ngi/async.py
===================================================================
--- zc.ngi/trunk/src/zc/ngi/async.py	2009-04-13 15:43:40 UTC (rev 99151)
+++ zc.ngi/trunk/src/zc/ngi/async.py	2009-04-13 16:46:52 UTC (rev 99152)
@@ -99,7 +99,7 @@
             except:
                 self.logger.exception("handle_exception failed")
                 return self.handle_close("handle_exception failed")
-                
+
         if self.__closed:
             try:
                 handler.handle_close(self, self.__closed)
@@ -107,14 +107,14 @@
                 self.logger.exception("Exception raised by handle_close(%r)",
                                       self.__closed)
                 raise
-        
+
     def write(self, data):
         if __debug__:
             self.logger.debug('write %r', data)
         assert isinstance(data, str) or (data is zc.ngi.END_OF_DATA)
         self.__output.append(data)
         notify_select()
-        
+
     def writelines(self, data):
         if __debug__:
             self.logger.debug('writelines %r', data)
@@ -138,7 +138,7 @@
 
     def handle_read_event(self):
         assert self.readable()
-        
+
         while 1:
             try:
                 d = self.recv(8192)
@@ -157,7 +157,7 @@
             except:
                 self.logger.exception("handle_input failed")
                 self.handle_close("handle_input failed")
-                
+
             if len(d) < 8192:
                 break
 
@@ -171,7 +171,7 @@
             if v is zc.ngi.END_OF_DATA:
                 self.close()
                 return
-            
+
             if not isinstance(v, str):
                 # Must be an iterator
                 try:
@@ -180,7 +180,7 @@
                     # all done
                     output.pop(0)
                     continue
-                
+
                 if __debug__ and not isinstance(v, str):
                     exc = TypeError("iterable output returned a non-string", v)
                     self.__report_exception(exc)
@@ -201,7 +201,7 @@
             except Exception, v:
                 self.__report_exception(v)
                 raise
-            
+
             if n == len(v):
                 output.pop(0)
             else:
@@ -217,7 +217,7 @@
                 self.handle_close("handle_exception failed")
         else:
             self.__exception = exception
-            
+
     def handle_close(self, reason='end of input'):
         if __debug__:
             self.logger.debug('close %r', reason)
@@ -233,8 +233,8 @@
 
     def handle_expt(self):
         self.handle_close('socket error')
-        
 
+
 class connector(dispatcher):
 
     logger = logging.getLogger('zc.ngi.async.client')
@@ -290,11 +290,11 @@
         except:
             self.logger.exception("failed_connect(%r) failed", reason)
         self.close()
- 
+
     def handle_write_event(self):
         err = self.socket.connect_ex(self.addr)
         if err in self._CONNECT_IN_PROGRESS:
-            return 
+            return
 
         if err not in self._CONNECT_OK:
             reason = errno.errorcode.get(err) or str(err)
@@ -404,7 +404,7 @@
         reason = sys.exc_info()[1]
         self.logger.exception('listener error')
         self.close()
-    
+
 # The following trigger code is greatly simplified from the Medusa
 # trigger code.
 
@@ -530,7 +530,7 @@
     map = _map
     connectors = _connectors
 
-# There seem to be some issues with poll.  
+# There seem to be some issues with poll.
 ##     if (hasattr(select, 'poll') and
 ##         (sys.version_info[:2] > (2, 3)) # There seem to be poll issues in 2.3
 ##         ):
@@ -548,7 +548,7 @@
         for f in list(connectors):
             c = connectors.pop(f)
             c.connect()
-            
+
         try:
             poll_fun(timeout, map)
         except:



More information about the Checkins mailing list