Skip to content

Commit

Permalink
bitcoin/varlen: Python 2.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed May 22, 2015
1 parent ff119a1 commit 1198ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitcoin/varlen.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def varlenDecode(b, rc = _ignoredrc):
rc[0] += 3
return (unpack('<H', b[1:3])[0], b[3:])
rc[0] += 1
return (b[0], b[1:])
return (ord(b[:1]), b[1:])

def varlenEncode(n):
if n < 0xfd:
Expand Down

0 comments on commit 1198ca4

Please sign in to comment.