AttributeError when attempting to access _sys.maxint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-netaddr (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
Anyone on Trusty wishing to utilize IPSets for gathering ranges of IPs.
[Test Case]
Code to reproduce:
from netaddr import IPSet
def get_ip_set(cidr):
""" Returns a list of ip's in cidr for use in juju's no-proxy setting
"""
ips = list(IPSet([cidr]))
return ",".join(str(x) for x in ips)
get_ip_
[Regression Potentional]
None
[Other Info]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/share/
ips = list(IPSet([cidr]))
File "/usr/lib/
if size > _sys.maxint:
AttributeError: 'module' object has no attribute 'maxint'
Related branches
Changed in python-netaddr (Ubuntu): | |
status: | New → Fix Released |
sponsored for trusty