🚨 Fix linting errors

This commit is contained in:
SavagePastaMan
2022-09-29 20:42:06 -04:00
parent 9fde815d8a
commit 58a548f8a0
5 changed files with 30 additions and 9 deletions
+3 -3
View File
@@ -81,10 +81,10 @@ def mint(resource, bits=20, now=None, ext="", saltchars=8, stamp_seconds=False):
return challenge + _mint(challenge, bits)
def _salt(l):
"Return a random string of length 'l'"
def _salt(length):
"Return a random string of length 'length'"
alphabet = ascii_letters + "+/="
return "".join([choice(alphabet) for _ in [None] * l])
return "".join([choice(alphabet) for _ in [None] * length])
def _mint(challenge, bits):