From 1efbe425f5c8b822c2b65e7d8041c0197941f97a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 11 Sep 2001 15:11:27 +0000 Subject: [PATCH] Patch #460554: Properly test for tuples. --- Lib/asyncore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncore.py b/Lib/asyncore.py index fb30d0e1d0..f221d4c18e 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) -- 2.40.0