From: Josiah Carlson Date: Wed, 19 Nov 2008 18:32:45 +0000 (+0000) Subject: This fixes issue 4332 in 2.6 maintenance. X-Git-Tag: v2.6.1~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6df732777c682c5cdf74cd3b1b9d2be151f544ca;p=python This fixes issue 4332 in 2.6 maintenance. --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 9cd4961613..75fd5aedd2 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()