Skip to content

Commit 413a9ff

Browse files
donbarbospicnixz
andauthored
Update Lib/getpass.py
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 8d9d83d commit 413a9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/getpass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def win_getpass(prompt='Password: ', stream=None, mask=None):
135135
raise KeyboardInterrupt
136136
if c == '\b':
137137
if mask and pw:
138-
for _ in range(len(mask)):
138+
for _ in mask:
139139
msvcrt.putwch('\b')
140140
msvcrt.putwch(' ')
141141
msvcrt.putwch('\b')

0 commit comments

Comments
 (0)