h0arry / ipaddr-py

Automatically exported from code.google.com/p/ipaddr-py
0 stars 0 forks source link

IP(b"\xd5\xf65/") fails (python3) #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The test in _BaseIP.__init__() fails if passed certain perfectly legal IP 
addresses as bytes objects such as b"\xd5\xf65/".

Original issue reported on code.google.com by Ultra...@gmail.com on 20 Jan 2011 at 7:53

GoogleCodeExporter commented 9 years ago
what version of ipaddr are you using? apart from being mentioned in some old 
docstrings which I need to fix, IP() isn't a function found in ipaddr.

Original comment by pmo...@google.com on 20 Jan 2011 at 11:47

GoogleCodeExporter commented 9 years ago
found the issue. give trunk a try. don't forget to run ./test-2to3.sh and use 
the resulting 2to3output/ipaddr.py 

I haven't gotten around to making this fully 2.x/3.x compatible.

Original comment by pmo...@google.com on 21 Jan 2011 at 12:11

GoogleCodeExporter commented 9 years ago
You've fixed it for python3. But the test on line 439 is now useless on 
python2.6 (because bytes == str) and throws name error on python2.5 (because 
bytes doesn't exist).

Original comment by Ultra...@gmail.com on 22 Jan 2011 at 9:25

GoogleCodeExporter commented 9 years ago
fixed in r208

Original comment by pmo...@google.com on 23 Feb 2011 at 4:22