This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Kain
Recipients Kain, eryksun, petrikas, r.david.murray, steve.dower, tim.golden, zach.ware
Date 2015-05-13.15:34:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431531252.0.0.280452706881.issue23995@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-05-13 15:34:12Kainsetrecipients: + Kain, tim.golden, r.david.murray, zach.ware, eryksun, steve.dower, petrikas
2015-05-13 15:34:12Kainsetmessageid: <1431531252.0.0.280452706881.issue23995@psf.upfronthosting.co.za>
2015-05-13 15:34:11Kainlinkissue23995 messages
2015-05-13 15:34:11Kaincreate