Skip to content

Commit

Permalink
Merge pull request #40 from reverendus/python3-fix
Browse files Browse the repository at this point in the history
Fix for decode_hex() not working correctly in Python3
  • Loading branch information
pipermerriam committed Apr 13, 2017
2 parents 9883434 + b8c5853 commit 7866c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rlp/utils_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def is_integer(value):
def decode_hex(s):
if isinstance(s, str):
return bytes.fromhex(s)
if isinstance(b, (bytes, bytearray)):
if isinstance(s, (bytes, bytearray)):
return binascii.unhexlify(s)
raise TypeError('Value must be an instance of str or bytes')

Expand Down

0 comments on commit 7866c63

Please sign in to comment.