Skip to content

Commit bf13df2

Browse files
committed
_compat.py: fix flakes
1 parent b25e282 commit bf13df2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ecdsa/_compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def str_idx_as_int(string, index):
1616
if sys.version_info < (3, 0):
1717
def normalise_bytes(buffer_object):
1818
"""Cast the input into array of bytes."""
19-
return buffer(buffer_object)
19+
# flake8 runs on py3 where `buffer` indeed doesn't exist...
20+
return buffer(buffer_object) # noqa: F821
2021

2122
def hmac_compat(ret):
2223
return ret

0 commit comments

Comments
 (0)