pyauth / pyotp

Python One-Time Password Library
https://pyauth.github.io/pyotp/
Other
2.98k stars 324 forks source link

Fix comparison of unicode chars #78

Closed ziima closed 5 years ago

ziima commented 5 years ago

Prevents TypeError from being raised, when user inputs a unicode character.

codecov-io commented 5 years ago

Codecov Report

Merging #78 into master will increase coverage by 0.02%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #78      +/-   ##
==========================================
+ Coverage   98.48%   98.51%   +0.02%     
==========================================
  Files           8        8              
  Lines         331      336       +5     
==========================================
+ Hits          326      331       +5     
  Misses          5        5
Impacted Files Coverage Δ
src/pyotp/utils.py 96.07% <100%> (+0.24%) :arrow_up:
test.py 98.4% <100%> (+0.01%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8d95cfd...ad76821. Read the comment docs.