Skip to content

Commit b063e33

Browse files
bkjohpicnixz
andauthored
fix getpass echo_char spacing per suggestion
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 37a0a72 commit b063e33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/getpass.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ def fallback_getpass(prompt='Password: ', stream=None, *, echo_char=None):
149149
def _check_echo_char(echo_char):
150150
# Single-character ASCII excluding control characters
151151
if echo_char and not (
152-
len(echo_char) == 1
153-
and echo_char.isprintable()
154-
and echo_char.isascii()
155-
):
152+
len(echo_char) == 1
153+
and echo_char.isprintable()
154+
and echo_char.isascii()
155+
):
156156
raise ValueError("'echo_char' must be a single printable ASCII "
157157
f"character got: {echo_char!r}")
158158

0 commit comments

Comments
 (0)