Skip to content

Commit 5a0ebd9

Browse files
cclaussbd808
authored andcommitted
Placate flake8
1 parent 8d8c140 commit 5a0ebd9

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

iptools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def __iter__(self):
399399

400400

401401
class IpRangeList (object):
402-
"""
402+
r"""
403403
List of IpRange objects.
404404
405405
Converts a list of ip address and/or CIDR addresses into a list of IpRange

iptools/ipv6.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,12 @@ def rfc19242long(s):
412412
return None
413413
if _RFC1924_REV is None:
414414
_RFC1924_REV = {v: k for k, v in enumerate(_RFC1924_ALPHABET)}
415-
l = 0
415+
x = 0
416416
for c in s:
417-
l = l * 85 + _RFC1924_REV[c]
418-
if l > MAX_IP:
417+
x = x * 85 + _RFC1924_REV[c]
418+
if x > MAX_IP:
419419
return None
420-
return l
420+
return x
421421

422422

423423
def validate_cidr(s):

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ envlist = py27, py34, py35, pypy, pypy3
44
[testenv]
55
deps = -r{toxinidir}/tests/requirements.txt
66
commands =
7-
flake8 --ignore=E741,W605
7+
flake8
88
nosetests

0 commit comments

Comments
 (0)