From 4a5645d9aab07b9a9c361bce854d39fdf4c8e90b Mon Sep 17 00:00:00 2001 From: cis-kuldeep Date: Wed, 28 Jul 2021 17:14:04 +0530 Subject: [PATCH] fixed imports --- src/helper_random.py | 2 +- src/highlevelcrypto.py | 8 ++++---- src/protocol.py | 18 +++++++++--------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/helper_random.py b/src/helper_random.py index 2ef4f78c..2e6a151b 100644 --- a/src/helper_random.py +++ b/src/helper_random.py @@ -6,7 +6,7 @@ import random try: from pyelliptic.openssl import OpenSSL except ImportError: - from pybitmessage.pyelliptic.openssl import OpenSSL + from .pyelliptic.openssl import OpenSSL NoneType = type(None) diff --git a/src/highlevelcrypto.py b/src/highlevelcrypto.py index ebfeff7c..995c5d00 100644 --- a/src/highlevelcrypto.py +++ b/src/highlevelcrypto.py @@ -15,10 +15,10 @@ try: from pyelliptic import OpenSSL from pyelliptic import arithmetic as a except ImportError: - from pybitmessage import pyelliptic - from pybitmessage.bmconfigparser import BMConfigParser - from pybitmessage.pyelliptic import OpenSSL - from pybitmessage.pyelliptic import arithmetic as a + from . import pyelliptic + from .bmconfigparser import BMConfigParser + from .pyelliptic import OpenSSL + from .pyelliptic import arithmetic as a def makeCryptor(privkey): diff --git a/src/protocol.py b/src/protocol.py index d3acc1b2..c28fccfc 100644 --- a/src/protocol.py +++ b/src/protocol.py @@ -25,16 +25,16 @@ try: from helper_sql import sqlExecute from version import softwareVersion except ImportError: - from pybitmessage import defaults - from pybitmessage import highlevelcrypto - from pybitmessage import state - from pybitmessage.addresses import ( + from . import defaults + from . import highlevelcrypto + from . import state + from .addresses import ( encodeVarint, decodeVarint, decodeAddress, varintDecodeError) - from pybitmessage.bmconfigparser import BMConfigParser - from pybitmessage.debug import logger - from pybitmessage.fallback import RIPEMD160Hash - from pybitmessage.helper_sql import sqlExecute - from pybitmessage.version import softwareVersion + from .bmconfigparser import BMConfigParser + from .debug import logger + from .fallback import RIPEMD160Hash + from .helper_sql import sqlExecute + from .version import softwareVersion PY3 = sys.version_info[0] >= 3