mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
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:
@@ -1,7 +1,7 @@
|
||||
import random
|
||||
import sys
|
||||
|
||||
import cryptomath_module as cryptomath
|
||||
from . import cryptomath_module as cryptomath
|
||||
|
||||
SYMBOLS = (
|
||||
r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`"""
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -2,7 +2,7 @@ import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
import transposition_cipher as transCipher
|
||||
from . import transposition_cipher as transCipher
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user