Changed string.letters to string.asciletters that is not
locale-dependent but exists both in python2 and 3
This commit is contained in:
@@ -87,7 +87,7 @@ def make_password(length=16):
|
|||||||
"""Create a random password."""
|
"""Create a random password."""
|
||||||
return "".join(
|
return "".join(
|
||||||
random.SystemRandom().choice(
|
random.SystemRandom().choice(
|
||||||
string.letters + string.digits) for _ in range(length))
|
string.ascii_letters + string.digits) for _ in range(length))
|
||||||
|
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
|
|||||||
Reference in New Issue
Block a user