mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
- fixed relative imports
This commit is contained in:
parent
82e2139f46
commit
b3e689c091
@ -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 (
|
||||
|
||||
@ -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,
|
||||
)
|
||||
|
||||
|
||||
@ -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))
|
||||
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
from ..web3 import formatters
|
||||
from web3 import formatters
|
||||
from .utils.encoding import (
|
||||
to_decimal,
|
||||
)
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
#import requests
|
||||
from google.appengine.api import urlfetch, urlfetch_stub
|
||||
|
||||
from ...pylru import pylru
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -14,7 +14,7 @@ class Version(object):
|
||||
|
||||
@property
|
||||
def api(self):
|
||||
from ..web3 import __version__
|
||||
from web3 import __version__
|
||||
return __version__
|
||||
|
||||
@property
|
||||
|
||||
Loading…
Reference in New Issue
Block a user