- fixed relative imports

This commit is contained in:
Julius Remigio 2022-11-01 12:23:30 -07:00
parent 82e2139f46
commit b3e689c091
9 changed files with 12 additions and 13 deletions

View File

@ -6,7 +6,7 @@ from eth_utils import (
coerce_return_to_text,
)
import formatters
from web3 import formatters
from .iban import Iban
from .contract import (

View File

@ -12,16 +12,16 @@ from ..eth_utils import (
decode_hex,
)
from decoding import (
from ..eth_abi.decoding import (
get_single_decoder,
get_multi_decoder,
)
from encoding import (
from ..eth_abi.encoding import (
get_single_encoder,
get_multi_encoder,
)
from utils.parsing import (
from ..eth_abi.utils.parsing import (
process_type,
)

View File

@ -14,7 +14,7 @@ from .string import (
def keccak(value):
# print keccak_256(force_bytes(value))
print "%s: %s " % (value, keccak_256(force_bytes(value)))
# print "%s: %s " % (value, keccak_256(force_bytes(value)))
return keccak_256(force_bytes(value))

View File

@ -3,7 +3,7 @@ from __future__ import unicode_literals
import re
import functools
from eth_utils import (
from .eth_utils import (
is_string,
coerce_args_to_text,
pad_left,

View File

@ -1,4 +1,4 @@
from ..web3 import formatters
from web3 import formatters
from .utils.encoding import (
to_decimal,
)

View File

@ -1,5 +1,4 @@
#import requests
from google.appengine.api import urlfetch, urlfetch_stub
from ...pylru import pylru

View File

@ -3,6 +3,6 @@ import sys
# raise MyException() from original_exception compatibility
if sys.version_info.major == 2:
from .exception_py2 import raise_from # noqa: F401
from web3.utils.exception_py2 import raise_from # noqa: F401
else:
from .exception_py3 import raise_from # noqa: F401
from web3.utils.exception_py3 import raise_from # noqa: F401

View File

@ -1,2 +1,2 @@
# def raise_from(my_exception, other_exception):
# raise my_exception from other_exception
def raise_from(my_exception, other_exception):
raise my_exception from other_exception

View File

@ -14,7 +14,7 @@ class Version(object):
@property
def api(self):
from ..web3 import __version__
from web3 import __version__
return __version__
@property