summaryrefslogtreecommitdiffstats
path: root/Lib/getpass.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-10-29 06:19:44 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-10-29 06:19:44 (GMT)
commitb2874bc585e7ec54d3c2bd2cc52108d048c33a3c (patch)
tree138ee93dc9b70d7ec090b89369b529cb0b9f190a /Lib/getpass.py
parent6230235e833bedfc1b4b6c1aba1d6fa8b616d1b1 (diff)
parent860c8a404ae540e5db076b2ca9b0605c30728dd9 (diff)
downloadcpython-b2874bc585e7ec54d3c2bd2cc52108d048c33a3c.zip
cpython-b2874bc585e7ec54d3c2bd2cc52108d048c33a3c.tar.gz
cpython-b2874bc585e7ec54d3c2bd2cc52108d048c33a3c.tar.bz2
Merge heads
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 = ""