Commit 763fd763 authored by Tres Seaver's avatar Tres Seaver

Avoid deprecation warning under Python >= 2.7.

parent d7ce1b5d
......@@ -145,10 +145,10 @@ if os.name == 'posix':
r, self.trigger = os.pipe()
asyncore.file_dispatcher.__init__(self, r, map)
if self.fd != r:
if self.socket.fd != r:
# Starting in Python 2.6, the descriptor passed to
# file_dispatcher gets duped and assigned to
# self.fd. This breals the instantiation semantics and
# self.socket.fd. This breals the instantiation semantics and
# is a bug imo. I dount it will get fixed, but maybe
# it will. Who knows. For that reason, we test for the
# fd changing rather than just checking the Python version.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment