From 4be27312932475d05517d2ec5f63b6cf3d883e82 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Wed, 17 Sep 2014 14:15:24 +0800 Subject: [PATCH] fix PEP8 --- shadowsocks/crypto/ctypes_openssl.py | 2 +- shadowsocks/crypto/m2.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/shadowsocks/crypto/ctypes_openssl.py b/shadowsocks/crypto/ctypes_openssl.py index 823dd90..696952a 100644 --- a/shadowsocks/crypto/ctypes_openssl.py +++ b/shadowsocks/crypto/ctypes_openssl.py @@ -158,4 +158,4 @@ def test(): if __name__ == '__main__': - test() \ No newline at end of file + test() diff --git a/shadowsocks/crypto/m2.py b/shadowsocks/crypto/m2.py index d69a468..d2a4927 100644 --- a/shadowsocks/crypto/m2.py +++ b/shadowsocks/crypto/m2.py @@ -36,8 +36,9 @@ def create_cipher(alg, key, iv, op, key_as_bytes=0, d=None, salt=None, i=1, padding=1): import M2Crypto.EVP - return M2Crypto.EVP.Cipher(alg.replace('-', '_'), key, iv, op, key_as_bytes=0, - d='md5', salt=None, i=1, padding=1) + return M2Crypto.EVP.Cipher(alg.replace('-', '_'), key, iv, op, + key_as_bytes=0, d='md5', salt=None, i=1, + padding=1) def err(alg, key, iv, op, key_as_bytes=0, d=None, salt=None, i=1, padding=1):