diff options
author | Josiah Carlson <josiah.carlson@gmail.com> | 2008-11-19 18:22:41 +0000 |
---|---|---|
committer | Josiah Carlson <josiah.carlson@gmail.com> | 2008-11-19 18:22:41 +0000 |
commit | 04ca854b5c83eaa6aae8ec59e35e1836540d1bbb (patch) | |
tree | 60a367c455e5ba660c2545f8507ef4af87b900e9 /Lib | |
parent | 5eaf61f4cd6f1896989a82157b66c46ba92fa61b (diff) | |
download | cpython-04ca854b5c83eaa6aae8ec59e35e1836540d1bbb.tar.gz |
This fixes issue 4332 for Py3k.
Diffstat (limited to 'Lib')
-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 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() |