Message243098
Had the same problem but was able to fix this by rewriting the win_getpass method in getpass.py:
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.putch(c.encode('utf-8'))
pw = ""
while 1:
c = msvcrt.getch()
if c == '\r'.encode('utf-8') or c == '\n'.encode('utf-8'):
break
if c == '\003'.encode('utf-8'):
raise KeyboardInterrupt
if c == '\b'.encode('utf-8'):
pw = pw[:-1]
else:
pw = pw + c.decode('utf-8')
msvcrt.putch('\r'.encode('utf-8'))
msvcrt.putch('\n'.encode('utf-8'))
return pw |
|
Date |
User |
Action |
Args |
2015-05-13 15:34:12 | Kain | set | recipients:
+ Kain, tim.golden, r.david.murray, zach.ware, eryksun, steve.dower, petrikas |
2015-05-13 15:34:12 | Kain | set | messageid: <1431531252.0.0.280452706881.issue23995@psf.upfronthosting.co.za> |
2015-05-13 15:34:11 | Kain | link | issue23995 messages |
2015-05-13 15:34:11 | Kain | create | |
|