Skip to content

Commit ba97481

Browse files
authored
Simplify password_generator() (#4333)
1 parent cbe4d5f commit ba97481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: other/password_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def password_generator(length=8):
1616
>>> len(password_generator(-1))
1717
0
1818
"""
19-
chars = tuple(ascii_letters) + tuple(digits) + tuple(punctuation)
19+
chars = ascii_letters + digits + punctuation
2020
return "".join(choice(chars) for x in range(length))
2121

2222

0 commit comments

Comments
 (0)