Commit 1efbe425 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #460554: Properly test for tuples.

parent 3ae57266
......@@ -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)
......
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