Running black on code

This commit is contained in:
Devin Matte 2020-12-21 15:24:51 -05:00
parent 7a312f1f79
commit 0d95333bab
9 changed files with 196 additions and 169 deletions

View file

@ -2,8 +2,7 @@ import random
def gen_password(
length,
charset='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*'
length, charset='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*'
):
# use secrets module once this works in python 3.6
return ''.join(random.choice(charset) for x in range(length))