Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError when checking prefixlen syntax of IPv6Network #51

Closed
GoogleCodeExporter opened this issue Mar 18, 2015 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create an IPv6Network object from any (invalid) IPv6 string containing 
more than one /.
>>> import ipaddr
>>> ipaddr.IPv6Network("::a:b/120/120")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ipaddr.py", line 1773, in __init__
    raise AddressValueError(ipaddr)
NameError: global name 'ipaddr' is not defined

What is the expected output? What do you see instead?
IPv6Network.__init__ correctly detects that this is invalid syntax and 
tries to raise an AddressValueError on the address, but provides an invalid 
argument.

What version of the product are you using? On what operating system?
SVN revision 129, Ubuntu Linux 9.10.

Please provide any additional information below.
Patch and test case are attached.

Original issue reported on code.google.com by hb...@ele.uri.edu on 18 Dec 2009 at 3:38

Attachments:

@GoogleCodeExporter
Copy link
Author

fixed in r131.
thanks.

Original comment by pmo...@google.com on 2 Feb 2010 at 5:49

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant