summaryrefslogtreecommitdiffstats
path: root/Lib/getpass.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-10-29 06:15:22 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-10-29 06:15:22 (GMT)
commit860c8a404ae540e5db076b2ca9b0605c30728dd9 (patch)
tree26bcb263587ef6c36b05077efb59ef6dfcdeb56a /Lib/getpass.py
parent2e0e18ba57ba4d8eb438734e2dc57bce0071f471 (diff)
parent669ff66c326a0e5e0bed0619b691725f76ac3d04 (diff)
downloadcpython-860c8a404ae540e5db076b2ca9b0605c30728dd9.zip
cpython-860c8a404ae540e5db076b2ca9b0605c30728dd9.tar.gz
cpython-860c8a404ae540e5db076b2ca9b0605c30728dd9.tar.bz2
merge 3.5 (#25502)
Diffstat (limited to 'Lib/getpass.py')
-rw-r--r--Lib/getpass.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py
index 7c4e976..be51121 100644
--- a/Lib/getpass.py
+++ b/Lib/getpass.py
@@ -99,7 +99,7 @@ def win_getpass(prompt='Password: ', stream=None):
"""Prompt for password with echo off, using Windows getch()."""
if sys.stdin is not sys.__stdin__:
return fallback_getpass(prompt, stream)
- import msvcrt
+
for c in prompt:
msvcrt.putwch(c)
pw = ""