Skip to content

Commit

Permalink
Merge pull request #325 from tlsfuzzer/compat-black
Browse files Browse the repository at this point in the history
Fix flake8 complaints
  • Loading branch information
tomato42 committed Sep 30, 2023
2 parents 5db1d2d + 5379cf3 commit 5a8ff7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ecdsa/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def int_to_bytes(val, length=None, byteorder="big"):
if length is None:
length = byte_length(val)
# for gmpy we need to convert back to native int
if type(val) != int:
if not isinstance(val, int):
val = int(val)
return bytearray(val.to_bytes(length=length, byteorder=byteorder))

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ commands = {envpython} speed.py
basepython = python3
deps =
black==22.3.0
flake8
flake8==6.1.0
commands =
flake8 setup.py speed.py src
black --check --line-length 79 .
Expand Down

0 comments on commit 5a8ff7f

Please sign in to comment.