pyauth / pyotp

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

Improve syntax #118

Closed ehdgua01 closed 3 years ago

ehdgua01 commented 3 years ago

Use format specifier to shorten the syntax

kislyuk commented 3 years ago

Thanks for your interest in PyOTP. This PR will not be merged because it would break the relevant logic. The f-string f"{var:=<x}" right-pads the string with = to be at least length x, not divisible by x.

ehdgua01 commented 3 years ago

Sorry, I mistook that secret's length is always 8