Skip to content

ip normalization doesn't work at Win10  #3

@kimjw001

Description

@kimjw001

In win 10 ,

PS C:\Python37\Practices\quokka> & C:/Python37/python.exe c:/Python37/Practices/quokka/m01_basics/l_13.normalize_data.py

Normalization tests

--String lower() normalization works
--String casefold() normalization works
--MAC address normalization works
Traceback (most recent call last):
File "c:/Python37/Practices/quokka/m01_basics/l_13.normalize_data.py", line 79, in
if IPv4Address(ip_addr_1) == IPv4Address(ip_addr_2) == IPv4Address(ip_addr_3):
File "C:\Python37\lib\ipaddress.py", line 1327, in init
self._ip = self._ip_int_from_string(addr_str)
File "C:\Python37\lib\ipaddress.py", line 1166, in _ip_int_from_string
raise AddressValueError("%s in %r" % (exc, ip_str)) from None
ipaddress.AddressValueError: Ambiguous (octal/decimal) value in '010' not permitted in '010.00.01.001'
PS C:\Python37\Practices\quokka>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions