We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0ed4ee commit bdc5693Copy full SHA for bdc5693
1 file changed
iptools/ipv6.py
@@ -212,7 +212,7 @@ def long2ip(l):
212
# format as one big hex value
213
hex_str = '%032x' % l
214
# split into double octet chunks without padding zeros
215
- hextets = ['%x' % int(hex_str[x:x+4], 16) for x in range(0, 32, 4)]
+ hextets = ['%x' % int(hex_str[x:x + 4], 16) for x in range(0, 32, 4)]
216
217
# find and remove left most longest run of zeros
218
dc_start, dc_len = (-1, 0)
0 commit comments