summaryrefslogtreecommitdiffstats
path: root/Lib/getpass.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-10-29 06:15:13 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-10-29 06:15:13 (GMT)
commit669ff66c326a0e5e0bed0619b691725f76ac3d04 (patch)
treedd640e983e89bb38fe1cda9c5af9e8c6d009d86f /Lib/getpass.py
parentf8152c67f52874cd4aa63f1cb3e1216382f98057 (diff)
downloadcpython-669ff66c326a0e5e0bed0619b691725f76ac3d04.zip
cpython-669ff66c326a0e5e0bed0619b691725f76ac3d04.tar.gz
cpython-669ff66c326a0e5e0bed0619b691725f76ac3d04.tar.bz2
remove duplicated imports (closes #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 = ""