summaryrefslogtreecommitdiff
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorJosiah Carlson <josiah.carlson@gmail.com>2008-11-19 18:22:41 +0000
committerJosiah Carlson <josiah.carlson@gmail.com>2008-11-19 18:22:41 +0000
commit04ca854b5c83eaa6aae8ec59e35e1836540d1bbb (patch)
tree60a367c455e5ba660c2545f8507ef4af87b900e9 /Lib/asyncore.py
parent5eaf61f4cd6f1896989a82157b66c46ba92fa61b (diff)
downloadcpython-04ca854b5c83eaa6aae8ec59e35e1836540d1bbb.tar.gz
This fixes issue 4332 for Py3k.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index cf68835165..236fd9e5c5 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -614,6 +614,6 @@ if os.name == 'posix':
fcntl.fcntl(fd, fcntl.F_SETFL, flags)
def set_file(self, fd):
- self._fileno = fd
self.socket = file_wrapper(fd)
+ self._fileno = self.socket.fileno()
self.add_channel()