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

[3.14] gh-77065: add missing parameterecho_char ingetpass.fallback_getpass (GH-133849)#134053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
picnixz merged 1 commit intopython:3.14frommiss-islington:backport-d029a1a-3.14
May 15, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-77065: add missing parameterecho_char in `getpass.fallback_getp…
…ass` (GH-133849)(cherry picked from commitd029a1a)Co-authored-by: Semyon Moroz <donbarbos@proton.me>
  • Loading branch information
@donbarbos@miss-islington
donbarbos authored andmiss-islington committedMay 15, 2025
commitf9d493b83b66c9c597de7c8a3edc3e3099b06abf
5 changes: 3 additions & 2 deletionsLib/getpass.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -132,14 +132,15 @@ def win_getpass(prompt='Password: ', stream=None, *, echo_char=None):
return pw


def fallback_getpass(prompt='Password: ', stream=None):
def fallback_getpass(prompt='Password: ', stream=None, *, echo_char=None):
_check_echo_char(echo_char)
import warnings
warnings.warn("Can not control echo on the terminal.", GetPassWarning,
stacklevel=2)
if not stream:
stream = sys.stderr
print("Warning: Password input may be echoed.", file=stream)
return _raw_input(prompt, stream)
return _raw_input(prompt, stream, echo_char=echo_char)


def _check_echo_char(echo_char):
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp