From 05ba3cc5aa09ee9cd5b79e6752e6443bfe4655fc Mon Sep 17 00:00:00 2001 From: clowwindy Date: Fri, 31 Oct 2014 18:57:06 +0800 Subject: [PATCH] lint code --- shadowsocks/crypto/salsa20_ctr.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shadowsocks/crypto/salsa20_ctr.py b/shadowsocks/crypto/salsa20_ctr.py index e6c561c..7496975 100644 --- a/shadowsocks/crypto/salsa20_ctr.py +++ b/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)