Simplify code
This commit is contained in:
parent
4cf7c753e0
commit
8f5c64b33e
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ class ABNF(object):
|
||||||
"""
|
"""
|
||||||
_m = array.array("B", mask_key)
|
_m = array.array("B", mask_key)
|
||||||
_d = array.array("B", data)
|
_d = array.array("B", data)
|
||||||
for i in range(len(_d)):
|
for i, _ in enumerate(_d):
|
||||||
_d[i] ^= _m[i % 4]
|
_d[i] ^= _m[i % 4]
|
||||||
return _d.tostring()
|
return _d.tostring()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue