modified imports

This commit is contained in:
cis-kuldeep 2021-07-21 17:43:47 +05:30
parent baf5f621dd
commit 9a860f32dc
No known key found for this signature in database
GPG Key ID: 67B47D8A06FA45E4
3 changed files with 14 additions and 14 deletions

View File

@ -6,7 +6,7 @@ import random
try: try:
from pyelliptic.openssl import OpenSSL from pyelliptic.openssl import OpenSSL
except ImportError: except ImportError:
from .pyelliptic.openssl import OpenSSL from pybitmessage.pyelliptic.openssl import OpenSSL
NoneType = type(None) NoneType = type(None)

View File

@ -15,10 +15,10 @@ try:
from pyelliptic import OpenSSL from pyelliptic import OpenSSL
from pyelliptic import arithmetic as a from pyelliptic import arithmetic as a
except ImportError: except ImportError:
from . import pyelliptic from pybitmessage import pyelliptic
from .bmconfigparser import BMConfigParser from pybitmessage.bmconfigparser import BMConfigParser
from .pyelliptic import OpenSSL from pybitmessage.pyelliptic import OpenSSL
from .pyelliptic import arithmetic as a from pybitmessage.pyelliptic import arithmetic as a
def makeCryptor(privkey): def makeCryptor(privkey):

View File

@ -25,16 +25,16 @@ try:
from helper_sql import sqlExecute from helper_sql import sqlExecute
from version import softwareVersion from version import softwareVersion
except ImportError: except ImportError:
from . import defaults from pybitmessage import defaults
from . import highlevelcrypto from pybitmessage import highlevelcrypto
from . import state from pybitmessage import state
from .addresses import ( from pybitmessage.addresses import (
encodeVarint, decodeVarint, decodeAddress, varintDecodeError) encodeVarint, decodeVarint, decodeAddress, varintDecodeError)
from .bmconfigparser import BMConfigParser from pybitmessage.bmconfigparser import BMConfigParser
from .debug import logger from pybitmessage.debug import logger
from .fallback import RIPEMD160Hash from pybitmessage.fallback import RIPEMD160Hash
from .helper_sql import sqlExecute from pybitmessage.helper_sql import sqlExecute
from .version import softwareVersion from pybitmessage.version import softwareVersion
PY3 = sys.version_info[0] >= 3 PY3 = sys.version_info[0] >= 3