mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
remove duplicated imports (closes #25502)
This commit is contained in:
parent
f8152c67f5
commit
669ff66c32
5 changed files with 2 additions and 7 deletions
|
@ -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 = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue