]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
This fixes issue 4332 for Py3k.
authorJosiah Carlson <josiah.carlson@gmail.com>
Wed, 19 Nov 2008 18:22:41 +0000 (18:22 +0000)
committerJosiah Carlson <josiah.carlson@gmail.com>
Wed, 19 Nov 2008 18:22:41 +0000 (18:22 +0000)
Lib/asyncore.py

index cf6883516565344a3b23ac79fae512577f72c7ae..236fd9e5c5c04a1bf8834de14520023a556371c7 100644 (file)
@@ -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()