mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Merge 3.5 (asyncio)
This commit is contained in:
commit
642afb3d3d
2 changed files with 5 additions and 1 deletions
|
@ -102,7 +102,7 @@ def _ipaddr_info(host, port, family, type, proto):
|
|||
else:
|
||||
return None
|
||||
|
||||
if port in {None, ''}:
|
||||
if port in {None, '', b''}:
|
||||
port = 0
|
||||
elif isinstance(port, (bytes, str)):
|
||||
port = int(port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue