From: Josiah Carlson Date: Wed, 19 Nov 2008 18:22:41 +0000 (+0000) Subject: This fixes issue 4332 for Py3k. X-Git-Tag: v3.0rc3~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aae55cbab41ac43408c9226a8e3b37e2244d65d4;p=thirdparty%2FPython%2Fcpython.git This fixes issue 4332 for Py3k. --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index cf6883516565..236fd9e5c5c0 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()