From: Josiah Carlson Date: Wed, 19 Nov 2008 18:26:12 +0000 (+0000) Subject: Fix for issue 4332 in trunk. X-Git-Tag: v2.7a1~2649 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a98d72d5983a1dafe3f2d1b9bafc97b9e35f9b92;p=thirdparty%2FPython%2Fcpython.git Fix for issue 4332 in trunk. --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 9cd496161360..75fd5aedd2cb 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()