Browse Source

lint code

auth
clowwindy 10 years ago
parent
commit
05ba3cc5aa
  1. 4
      shadowsocks/crypto/salsa20_ctr.py

4
shadowsocks/crypto/salsa20_ctr.py

@ -75,12 +75,10 @@ def py_xor_str(a, b):
if bytes == str:
for i in range(0, len(a)):
c.append(chr(ord(a[i]) ^ ord(b[i])))
return ''.join(c)
else:
for i in range(0, len(a)):
c.append(a[i] ^ b[i])
if bytes == str:
return ''.join(c)
else:
return bytes(c)

Loading…
Cancel
Save