summaryrefslogtreecommitdiff
path: root/netaddr/ip/sets.py
diff options
context:
space:
mode:
Diffstat (limited to 'netaddr/ip/sets.py')
-rw-r--r--netaddr/ip/sets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netaddr/ip/sets.py b/netaddr/ip/sets.py
index 2536dc4..0da1743 100644
--- a/netaddr/ip/sets.py
+++ b/netaddr/ip/sets.py
@@ -609,7 +609,7 @@ class IPSet(object):
limitation). Use the .size property for subnets of any size.
"""
size = self.size
- if size > _sys.maxint:
+ if size > _sys_maxint:
raise IndexError("range contains greater than %d (maxint) " \
"IP addresses! Use the .size property instead." % _sys_maxint)
return size