diff options
author | Josiah Carlson <josiah.carlson@gmail.com> | 2008-11-19 18:22:41 (GMT) |
---|---|---|
committer | Josiah Carlson <josiah.carlson@gmail.com> | 2008-11-19 18:22:41 (GMT) |
commit | aae55cbab41ac43408c9226a8e3b37e2244d65d4 (patch) | |
tree | 031a3090f110622d812c153577eb2009cad3db72 /Lib/asyncore.py | |
parent | a632a75a3e230e83aa3c436bc637760a3658af1e (diff) | |
download | cpython-aae55cbab41ac43408c9226a8e3b37e2244d65d4.zip cpython-aae55cbab41ac43408c9226a8e3b37e2244d65d4.tar.gz cpython-aae55cbab41ac43408c9226a8e3b37e2244d65d4.tar.bz2 |
This fixes issue 4332 for Py3k.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index cf68835..236fd9e 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() |