Fixed Code
In Windows 8 to work the app.py:
net.py line :33
try:
socket.inet_pton(socket.AF_INET6, address)
except socket.error:
return False
And Ok!
if I put "return True", I have an error:
AttributeError: 'module' object has no attribute 'inet_pton'
Original code:
def validip6addr(address):
"""
Returns True if `address` is a valid IPv6 address.
>>> validip6addr('::')
True
>>> validip6addr('aaaa:bbbb:cccc:dddd::1')
True
>>> validip6addr('1:2:3:4:5:6:7:8:9:10')
False
>>> validip6addr('12:10')
False
"""
try:
socket.inet_pton(socket.AF_INET6, address)
except socket.error:
return False
return True