Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aae55cb

Browse files
committed
This fixes issue 4332 for Py3k.
1 parent a632a75 commit aae55cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/asyncore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,6 @@ def __init__(self, fd, map=None):
614614
fcntl.fcntl(fd, fcntl.F_SETFL, flags)
615615

616616
def set_file(self, fd):
617-
self._fileno = fd
618617
self.socket = file_wrapper(fd)
618+
self._fileno = self.socket.fileno()
619619
self.add_channel()

0 commit comments

Comments
 (0)