Fix imports for all namespace packages (#2506)

* Fix imports as they're namespace packages

* Fix import for scripts/validate_filenames.py

* Fix path in doctest
This commit is contained in:
Dhruv
2020-09-29 03:11:04 +05:30
committed by GitHub
parent 48357cea5b
commit 9016fe192f
17 changed files with 27 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
import random
import sys
import cryptomath_module as cryptomath
from . import cryptomath_module as cryptomath
SYMBOLS = (
r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`"""

View File

@@ -2,8 +2,8 @@ import os
import random
import sys
import cryptomath_module as cryptoMath
import rabin_miller as rabinMiller
from . import cryptomath_module as cryptoMath
from . import rabin_miller as rabinMiller
min_primitive_root = 3

View File

@@ -1,7 +1,7 @@
import os
import sys
import rsa_key_generator as rkg
from . import rsa_key_generator as rkg
DEFAULT_BLOCK_SIZE = 128
BYTE_SIZE = 256

View File

@@ -2,8 +2,8 @@ import os
import random
import sys
import cryptomath_module as cryptoMath
import rabin_miller as rabinMiller
from . import cryptomath_module as cryptoMath
from . import rabin_miller as rabinMiller
def main():

View File

@@ -2,7 +2,7 @@ import os
import sys
import time
import transposition_cipher as transCipher
from . import transposition_cipher as transCipher
def main():