commit | 1efbe425f5c8b822c2b65e7d8041c0197941f97a | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Tue Sep 11 15:11:27 2001 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Tue Sep 11 15:11:27 2001 +0000 |
tree | 00f801992730847ebd92f6de2bfdfb63861b2e73 | |
parent | 3ae572662521d3c74658f3039b68c8daa02f4fe3 [diff] |
Patch #460554: Properly test for tuples.
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index fb30d0e..f221d4c 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py
@@ -208,7 +208,7 @@ 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)