]> granicus.if.org Git - python/commitdiff
issue 10527: fix missing import
authorGiampaolo Rodola' <g.rodola@gmail.com>
Thu, 3 Jan 2013 01:53:28 +0000 (02:53 +0100)
committerGiampaolo Rodola' <g.rodola@gmail.com>
Thu, 3 Jan 2013 01:53:28 +0000 (02:53 +0100)
Doc/library/asyncore.rst
Lib/multiprocessing/connection.py

index c1084504df0b6131fbf95a06cf9c51405fb9020b..1e2bcd838df0386464f1046853b9300fcd331495 100644 (file)
@@ -318,13 +318,10 @@ connections and dispatches the incoming connections to a handler::
 
         def handle_accept(self):
             pair = self.accept()
-            if pair is None:
-                pass
-            else:
+            if pair is not None:
                 sock, addr = pair
                 print 'Incoming connection from %s' % repr(addr)
                 handler = EchoHandler(sock)
 
     server = EchoServer('localhost', 8080)
     asyncore.loop()
-
index 6c398fdc918671597341df0afe7d9ea8a1fa2e57..74db09451f8cf17dce78abfe82f34ba2f1056d3d 100644 (file)
@@ -41,6 +41,7 @@ import errno
 import time
 import tempfile
 import itertools
+import select
 
 import _multiprocessing
 from multiprocessing import current_process, AuthenticationError