I also encounter this problem .
I move to linux .
On Sunday, June 16, 2013 2:05:30 AM UTC+8, Faustino Aguilar Quirós wrote:
> 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
>
>
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.