[Python-checkins] update docstring for `win_getpass` to reflect code changes (GH-24967)

miss-islington webhook-mailer at python.org
Tue May 4 03:08:13 EDT 2021


https://github.com/python/cpython/commit/20380df6d819977882ed7d62784f207319f90865
commit: 20380df6d819977882ed7d62784f207319f90865
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-05-04T00:08:09-07:00
summary:

update docstring for `win_getpass` to reflect code changes (GH-24967)


The code was updated in
https://github.com/python/cpython/commit/0ec88b33d093db00ec68b220247681354a650f0c
but the docstring was left untouched.

=> updated the docstring to reflect the code changes
(cherry picked from commit d4222ea6b0bb3cf7d40f23b370dc9eea5f9b7004)

Co-authored-by: Jürgen Gmach <juergen.gmach at googlemail.com>

files:
M Lib/getpass.py

diff --git a/Lib/getpass.py b/Lib/getpass.py
index 6911f41d1f205..6970d8adfbab3 100644
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -95,7 +95,7 @@ def unix_getpass(prompt='Password: ', stream=None):
 
 
 def win_getpass(prompt='Password: ', stream=None):
-    """Prompt for password with echo off, using Windows getch()."""
+    """Prompt for password with echo off, using Windows getwch()."""
     if sys.stdin is not sys.__stdin__:
         return fallback_getpass(prompt, stream)
 



More information about the Python-checkins mailing list