Skip to content

Commit 4338c9f

Browse files
bkjohpicnixz
andauthored
reword echo_char error message per suggestion
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent bbd741a commit 4338c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/getpass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def _check_echo_char(echo_char):
153153
and echo_char.isprintable()
154154
and echo_char.isascii()
155155
):
156-
raise ValueError("'echo_char' must be a single-character, printable "
157-
f"ASCII string, got: {echo_char!r}")
156+
raise ValueError("'echo_char' must be a single printable ASCII "
157+
f"character got: {echo_char!r}")
158158

159159

160160
def _raw_input(prompt="", stream=None, input=None, echo_char=None):

0 commit comments

Comments
 (0)