change import logic

This commit is contained in:
Muzahid 2021-06-21 21:05:14 +05:30
parent f072036e75
commit 5dbb95f631
Signed by untrusted user: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA
2 changed files with 4 additions and 17 deletions

View File

@ -2,11 +2,7 @@
import os
import random
try:
from pyelliptic.openssl import OpenSSL
except ModuleNotFoundError:
from .pyelliptic.openssl import OpenSSL
NoneType = type(None)

View File

@ -11,22 +11,13 @@ from binascii import hexlify
try:
import pyelliptic
except ImportError:
from . import pyelliptic
try:
from bmconfigparser import BMConfigParser
except ImportError:
from .bmconfigparser import BMConfigParser
try:
from pyelliptic import OpenSSL
except ImportError:
from .pyelliptic import OpenSSL
try:
from pyelliptic import arithmetic as a
except ImportError:
from . import pyelliptic
from .bmconfigparser import BMConfigParser
from .pyelliptic import OpenSSL
from .pyelliptic import arithmetic as a