Skip to content

Commit

Permalink
Compatibility with eth-utils v1 stable
Browse files Browse the repository at this point in the history
Cherry-picked from ethereum#421 merge

* Plus one more force_text in build_utils, unique to sharding

* remove force_bytes from eth-utils v0

* Use tox for linting, to get all folders

* Upgrade to eth-utils v1.0.1

* test str & bytes response in pong + related bugfix
  • Loading branch information
carver authored and hwwhww committed Mar 2, 2018
1 parent 6fb50ce commit 1da8828
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions evm/tools/test_builder/builder_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
merge_with,
)
from eth_utils import (
force_text,
to_text,
int_to_big_endian,
)
from evm.utils.padding import (
Expand Down Expand Up @@ -106,7 +106,7 @@ def add_transaction_to_group(group, transaction):

def get_version_from_git():
version = subprocess.check_output(["git", "describe"]).strip()
return force_text(version)
return to_text(version)


def calc_state_root(state, account_state_db_class):
Expand Down
2 changes: 1 addition & 1 deletion p2p/ecies.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from eth_keys import keys
from eth_keys import datatypes

from evm.utils.padding import ( # TODO: cross library utils import
from evm.utils.padding import (
pad32,
)

Expand Down

0 comments on commit 1da8828

Please sign in to comment.