Skip to content

Commit

Permalink
flake8: ignore W504, unignore E305, E401, E226
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Nov 6, 2018
1 parent 24fae3d commit 5ce38bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
universal=1
[flake8]
max-line-length=120
ignore: E301, E302, E305, E401, E226, F841
ignore: E301, E302, W504
2 changes: 1 addition & 1 deletion src/pyotp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ def _compare_digest(s1, s2):
differences |= ord(c1) ^ ord(c2)
return differences == 0


try:
# Python 3.3+ and 2.7.7+ include a timing-attack-resistant
# comparison function, which is probably more reliable than ours.
# Use it if available.
from hmac import compare_digest

except ImportError:
compare_digest = _compare_digest

Expand Down

0 comments on commit 5ce38bb

Please sign in to comment.