mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
issue 10527: fix missing import
This commit is contained in:
parent
895cc22b8b
commit
049a378cd7
2 changed files with 2 additions and 4 deletions
|
@ -318,13 +318,10 @@ connections and dispatches the incoming connections to a handler::
|
||||||
|
|
||||||
def handle_accept(self):
|
def handle_accept(self):
|
||||||
pair = self.accept()
|
pair = self.accept()
|
||||||
if pair is None:
|
if pair is not None:
|
||||||
pass
|
|
||||||
else:
|
|
||||||
sock, addr = pair
|
sock, addr = pair
|
||||||
print 'Incoming connection from %s' % repr(addr)
|
print 'Incoming connection from %s' % repr(addr)
|
||||||
handler = EchoHandler(sock)
|
handler = EchoHandler(sock)
|
||||||
|
|
||||||
server = EchoServer('localhost', 8080)
|
server = EchoServer('localhost', 8080)
|
||||||
asyncore.loop()
|
asyncore.loop()
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ import errno
|
||||||
import time
|
import time
|
||||||
import tempfile
|
import tempfile
|
||||||
import itertools
|
import itertools
|
||||||
|
import select
|
||||||
|
|
||||||
import _multiprocessing
|
import _multiprocessing
|
||||||
from multiprocessing import current_process, AuthenticationError
|
from multiprocessing import current_process, AuthenticationError
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue