change import logic
This commit is contained in:
parent
f072036e75
commit
5dbb95f631
|
@ -2,11 +2,7 @@
|
|||
|
||||
import os
|
||||
import random
|
||||
|
||||
try:
|
||||
from pyelliptic.openssl import OpenSSL
|
||||
except ModuleNotFoundError:
|
||||
from .pyelliptic.openssl import OpenSSL
|
||||
from pyelliptic.openssl import OpenSSL
|
||||
|
||||
NoneType = type(None)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Reference in New Issue
Block a user