mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Patch #460554: Properly test for tuples.
This commit is contained in:
parent
3ae5726625
commit
1efbe425f5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue