https://bugzilla.redhat.com/show_bug.cgi?id=923831



--- Comment #4 from Sergio Pascual <sergio.pa...@gmail.com> ---
(In reply to Volker Fröhlich from comment #3)
> http://docs.python.org/dev/library/ipaddress
> 
> >>> import ipaddress
> >>> ipaddress.ip_address('192.168.0.1')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.7/site-packages/ipaddress.py", line 105, in
> ip_address
>     address)
> ValueError: '192.168.0.1' does not appear to be an IPv4 or IPv6 address

Try this instead

>>> import ipaddress
>>> ipaddress.ip_address(u'192.168.0.1')
IPv4Address(u'192.168.0.1')

the module expects unicode

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/package-review

Reply via email to