summaryrefslogtreecommitdiff
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-09-11 15:11:27 +0000
committerMartin v. Löwis <martin@v.loewis.de>2001-09-11 15:11:27 +0000
commit1efbe425f5c8b822c2b65e7d8041c0197941f97a (patch)
tree00f801992730847ebd92f6de2bfdfb63861b2e73 /Lib/asyncore.py
parent3ae572662521d3c74658f3039b68c8daa02f4fe3 (diff)
downloadcpython-git-1efbe425f5c8b822c2b65e7d8041c0197941f97a.tar.gz
Patch #460554: Properly test for tuples.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py2
1 files changed, 1 insertions, 1 deletions
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)