lint code
This commit is contained in:
parent
ede2b1b120
commit
05ba3cc5aa
1 changed files with 1 additions and 3 deletions
|
@ -75,12 +75,10 @@ def py_xor_str(a, b):
|
||||||
if bytes == str:
|
if bytes == str:
|
||||||
for i in range(0, len(a)):
|
for i in range(0, len(a)):
|
||||||
c.append(chr(ord(a[i]) ^ ord(b[i])))
|
c.append(chr(ord(a[i]) ^ ord(b[i])))
|
||||||
|
return ''.join(c)
|
||||||
else:
|
else:
|
||||||
for i in range(0, len(a)):
|
for i in range(0, len(a)):
|
||||||
c.append(a[i] ^ b[i])
|
c.append(a[i] ^ b[i])
|
||||||
if bytes == str:
|
|
||||||
return ''.join(c)
|
|
||||||
else:
|
|
||||||
return bytes(c)
|
return bytes(c)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue