summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJosiah Carlson <josiah.carlson@gmail.com>2008-11-19 18:32:45 (GMT)
committerJosiah Carlson <josiah.carlson@gmail.com>2008-11-19 18:32:45 (GMT)
commit6df732777c682c5cdf74cd3b1b9d2be151f544ca (patch)
tree0aa95b329308c768c5a905d8193eeb3ef0217eaf /Lib
parent45a276cdd2f9ceff5f89868428963ffa581e6f96 (diff)
downloadcpython-6df732777c682c5cdf74cd3b1b9d2be151f544ca.zip
cpython-6df732777c682c5cdf74cd3b1b9d2be151f544ca.tar.gz
cpython-6df732777c682c5cdf74cd3b1b9d2be151f544ca.tar.bz2
This fixes issue 4332 in 2.6 maintenance.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 9cd4961..75fd5ae 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -615,6 +615,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()