From: Martin v. Löwis Date: Tue, 11 Sep 2001 15:11:27 +0000 (+0000) Subject: Patch #460554: Properly test for tuples. X-Git-Tag: v2.2.1c1~1854 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1efbe425f5c8b822c2b65e7d8041c0197941f97a;p=thirdparty%2FPython%2Fcpython.git Patch #460554: Properly test for tuples. --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index fb30d0e1d0c8..f221d4c18e97 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -208,7 +208,7 @@ class dispatcher: elif self.connected: status.append ('connected') if self.addr: - if self.addr == types.TupleType: + if type(self.addr) == types.TupleType: status.append ('%s:%d' % self.addr) else: status.append (self.addr)