Commits

Giampaolo Rodola  committed 7cf4ea6 Draft

issue 10527: fix missing import

  • Participants
  • Parent commits 06a0814
  • Branches 2.7

Comments (0)

Files changed (2)

File Doc/library/asyncore.rst

 
         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()
-

File Lib/multiprocessing/connection.py

 import time
 import tempfile
 import itertools
+import select
 
 import _multiprocessing
 from multiprocessing import current_process, AuthenticationError