From 0ec88b33d093db00ec68b220247681354a650f0c Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 10 Dec 2007 17:02:00 +0000 Subject: Fixed #1578: Problems in win_getpass --- Lib/getpass.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Lib/getpass.py') diff --git a/Lib/getpass.py b/Lib/getpass.py index 02fe527e6b9..a726189fe1a 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -49,10 +49,10 @@ def win_getpass(prompt='Password: ', stream=None): return default_getpass(prompt, stream) import msvcrt for c in prompt: - msvcrt.putch(c) + msvcrt.putwch(c) pw = "" while 1: - c = msvcrt.getch() + c = msvcrt.getwch() if c == '\r' or c == '\n': break if c == '\003': @@ -61,8 +61,8 @@ def win_getpass(prompt='Password: ', stream=None): pw = pw[:-1] else: pw = pw + c - msvcrt.putch('\r') - msvcrt.putch('\n') + msvcrt.putwch('\r') + msvcrt.putwch('\n') return pw -- cgit v1.2.3