Commit ab3a7d29 authored by Vincent Pelletier's avatar Vincent Pelletier

.keys() is implicit.

parent 09f6a922
......@@ -71,7 +71,7 @@ def getAddressType(address):
"Return the type (IPv4 or IPv6) of an ip"
(host, port) = address
for af_type in SOCKET_CONNECTORS_DICT.keys():
for af_type in SOCKET_CONNECTORS_DICT:
try :
socket.inet_pton(af_type, host)
except:
......
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