From aae55cbab41ac43408c9226a8e3b37e2244d65d4 Mon Sep 17 00:00:00 2001 From: Josiah Carlson Date: Wed, 19 Nov 2008 18:22:41 +0000 Subject: [PATCH] This fixes issue 4332 for Py3k. --- Lib/asyncore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncore.py b/Lib/asyncore.py index cf688351656..236fd9e5c5c 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()