Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd029a1a

Browse files
authored
gh-77065: add missing parameterecho_char ingetpass.fallback_getpass (#133849)
1 parent74c4e35 commitd029a1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎Lib/getpass.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,15 @@ def win_getpass(prompt='Password: ', stream=None, *, echo_char=None):
132132
returnpw
133133

134134

135-
deffallback_getpass(prompt='Password: ',stream=None):
135+
deffallback_getpass(prompt='Password: ',stream=None,*,echo_char=None):
136+
_check_echo_char(echo_char)
136137
importwarnings
137138
warnings.warn("Can not control echo on the terminal.",GetPassWarning,
138139
stacklevel=2)
139140
ifnotstream:
140141
stream=sys.stderr
141142
print("Warning: Password input may be echoed.",file=stream)
142-
return_raw_input(prompt,stream)
143+
return_raw_input(prompt,stream,echo_char=echo_char)
143144

144145

145146
def_check_echo_char(echo_char):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp