We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 501d704 commit b6b822fCopy full SHA for b6b822f
Lib/getpass.py
@@ -146,9 +146,7 @@ def fallback_getpass(prompt='Password: ', stream=None):
146
147
def _check_echochar(echochar):
148
# ASCII excluding control characters
149
- if echochar and not (len(echochar) == 1 and
150
- echochar.isprintable() and
151
- echochar.isascii()):
+ if echochar and not (echochar.isprintable() and echochar.isascii()):
152
raise ValueError(f"'echochar' must be ASCII, got: {echochar!r}")
153
154
0 commit comments