summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpmoody@google.com <pmoody@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2010-02-21 02:40:17 +0000
committerpmoody@google.com <pmoody@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2010-02-21 02:40:17 +0000
commit272282d549cc29ccdfb4d35a8161dfcb653e225f (patch)
treeec953efe7c53770142ff647169f606af51334bbf
parent13264b9134fef7f4068cc23b63752d3ae963cd81 (diff)
downloadipaddr-py-272282d549cc29ccdfb4d35a8161dfcb653e225f.tar.gz
+ bug with list comprehension in _is_valid_netmask
git-svn-id: https://ipaddr-py.googlecode.com/svn@146 09200d28-7f98-11dd-ad27-0f66e57d2035
-rw-r--r--trunk/ipaddr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/ipaddr.py b/trunk/ipaddr.py
index 7e7cb0c..a5d2309 100644
--- a/trunk/ipaddr.py
+++ b/trunk/ipaddr.py
@@ -1314,7 +1314,7 @@ class IPv4Network(_BaseV4, _BaseNet):
if len(mask) == 4:
if [x for x in mask if int(x) not in self._valid_mask_octets]:
return False
- if [x for idx, y in enumerate(mask) if idx > 0 and
+ if [y for idx, y in enumerate(mask) if idx > 0 and
y > mask[idx - 1]]:
return False
return True