From daa320d9b0d53702d79cb12ae48762e88d9fd797 Mon Sep 17 00:00:00 2001 From: xymy Date: Sat, 28 Mar 2020 15:24:14 +0800 Subject: [PATCH] Improve improt statements --- src/xycrypto/ciphers/Cryptography/__init__.py | 8 +++----- .../ciphers/Cryptography/{_block.py => _core_block.py} | 0 .../ciphers/Cryptography/{_stream.py => _core_stream.py} | 0 src/xycrypto/ciphers/__init__.py | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) rename src/xycrypto/ciphers/Cryptography/{_block.py => _core_block.py} (100%) rename src/xycrypto/ciphers/Cryptography/{_stream.py => _core_stream.py} (100%) diff --git a/src/xycrypto/ciphers/Cryptography/__init__.py b/src/xycrypto/ciphers/Cryptography/__init__.py index c2073a1..7691f30 100644 --- a/src/xycrypto/ciphers/Cryptography/__init__.py +++ b/src/xycrypto/ciphers/Cryptography/__init__.py @@ -1,10 +1,8 @@ -from ._stream import ( # NOQA; isort:skip +from ._core_stream import ( # NOQA; isort:skip ChaCha20, RC4 ) -from ._block_AES import ( # NOQA; isort:skip - AES, AES_ECB, AES_CBC, AES_CFB, AES_OFB, AES_CTR -) -from ._block_TripleDES import ( # NOQA; isort:skip +from ._core_block import ( # NOQA; isort:skip + AES, AES_ECB, AES_CBC, AES_CFB, AES_OFB, AES_CTR, TripleDES, TripleDES_ECB, TripleDES_CBC, TripleDES_CFB, TripleDES_OFB ) diff --git a/src/xycrypto/ciphers/Cryptography/_block.py b/src/xycrypto/ciphers/Cryptography/_core_block.py similarity index 100% rename from src/xycrypto/ciphers/Cryptography/_block.py rename to src/xycrypto/ciphers/Cryptography/_core_block.py diff --git a/src/xycrypto/ciphers/Cryptography/_stream.py b/src/xycrypto/ciphers/Cryptography/_core_stream.py similarity index 100% rename from src/xycrypto/ciphers/Cryptography/_stream.py rename to src/xycrypto/ciphers/Cryptography/_core_stream.py diff --git a/src/xycrypto/ciphers/__init__.py b/src/xycrypto/ciphers/__init__.py index e69de29..45ea836 100644 --- a/src/xycrypto/ciphers/__init__.py +++ b/src/xycrypto/ciphers/__init__.py @@ -0,0 +1 @@ +from .Cryptography import * # NOQA