remove duplicated imports (closes #25502)

This commit is contained in:
Benjamin Peterson 2015-10-28 23:15:13 -07:00
parent f8152c67f5
commit 669ff66c32
5 changed files with 2 additions and 7 deletions

View file

@ -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 = ""