Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5543021 commit dfa74b9Copy full SHA for dfa74b9
1 file changed
Lib/asyncore.py
@@ -509,7 +509,7 @@ def send(self, *args):
509
write = send
510
511
def close(self):
512
- return os.close(self.fd)
+ os.close(self.fd)
513
514
def fileno(self):
515
return self.fd
@@ -519,11 +519,11 @@ class file_dispatcher(dispatcher):
519
def __init__(self, fd, map=None):
520
dispatcher.__init__(self, None, map)
521
self.connected = True
522
+ self.set_file(fd)
523
# set it to non-blocking mode
524
flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
525
flags = flags | os.O_NONBLOCK
526
fcntl.fcntl(fd, fcntl.F_SETFL, flags)
- self.set_file(fd)
527
528
def set_file(self, fd):
529
self._fileno = fd
0 commit comments