Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 474952f

Browse files
committed
simplify bytearray_to_bytestr
1 parent 20537b9 commit 474952f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def to_string_for_regexp(value):
3636
unicode = unicode
3737

3838
def bytearray_to_bytestr(value):
39-
return bytes(''.join(chr(c) for c in value))
39+
return str(bytearray([0, 1, 2, 254, 255]))
4040

4141
else:
4242
is_numeric = lambda x: isinstance(x, int)

0 commit comments

Comments
 (0)