From 44598a070d23e3ddba6d92d805d1419ab17c0d60 Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Tue, 21 Jun 2016 21:29:34 +0800 Subject: [PATCH] compatible python3 --- shadowsocks/encrypt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shadowsocks/encrypt.py b/shadowsocks/encrypt.py index 57540bc..9609f89 100644 --- a/shadowsocks/encrypt.py +++ b/shadowsocks/encrypt.py @@ -75,7 +75,8 @@ def EVP_BytesToKey(password, key_len, iv_len): class Encryptor(object): def __init__(self, key, method): self.key = key - self.method = common.to_str(method) + method = common.to_str(method) + self.method = method self.iv = None self.iv_sent = False self.cipher_iv = b''