File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ def win_getpass(prompt='Password: ', stream=None):
49
49
return default_getpass (prompt , stream )
50
50
import msvcrt
51
51
for c in prompt :
52
- msvcrt .putch (c )
52
+ msvcrt .putwch (c )
53
53
pw = ""
54
54
while 1 :
55
- c = msvcrt .getch ()
55
+ c = msvcrt .getwch ()
56
56
if c == '\r ' or c == '\n ' :
57
57
break
58
58
if c == '\003 ' :
@@ -61,8 +61,8 @@ def win_getpass(prompt='Password: ', stream=None):
61
61
pw = pw [:- 1 ]
62
62
else :
63
63
pw = pw + c
64
- msvcrt .putch ('\r ' )
65
- msvcrt .putch ('\n ' )
64
+ msvcrt .putwch ('\r ' )
65
+ msvcrt .putwch ('\n ' )
66
66
return pw
67
67
68
68
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ Extension Modules
25
25
Library
26
26
-------
27
27
28
+ - Issue #1578: Problems in win_getpass
29
+
28
30
29
31
What's New in Python 3.0a2?
30
32
===========================
You can’t perform that action at this time.
0 commit comments