]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
update docstring for `win_getpass` to reflect code changes (GH-24967)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 May 2021 07:08:09 +0000 (00:08 -0700)
committerGitHub <noreply@github.com>
Tue, 4 May 2021 07:08:09 +0000 (00:08 -0700)
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@googlemail.com>
Lib/getpass.py

index 6911f41d1f2054e73114eb101a0a2d3c102a1b15..6970d8adfbab3673de681ef05059732dffa8f64c 100644 (file)
@@ -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)