Skip to content

Commit 73acb05

Browse files
committed
Replace xrange() with range() for python 3.2 compat.
1 parent da103aa commit 73acb05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

iptools/ipv6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def ip2long(ip):
158158
hextets = halves[0].split(':')
159159
if len(halves) == 2:
160160
h2 = halves[1].split(':')
161-
for z in xrange(8 - (len(hextets) + len(h2))):
161+
for z in range(8 - (len(hextets) + len(h2))):
162162
hextets.append('0')
163163
for h in h2:
164164
hextets.append(h)

0 commit comments

Comments
 (0)