Skip to content

Commit

Permalink
util.py: fix flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Nov 30, 2019
1 parent 94a2331 commit 6d8ccea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ecdsa/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def entropy_to_bits(ent_256):
return ''.join(bin(ord(x))[2:].zfill(8) for x in ent_256)


if sys.version < '2.7': #Can't add a method to a built-in type so we are stuck with this
if sys.version < '2.7':
# Can't add a method to a built-in type so we are stuck with this
def bit_length(x):
return len(bin(x)) - 2
else:
Expand Down

0 comments on commit 6d8ccea

Please sign in to comment.