Byte encoding for getpass

Fixes #392 and #393
This commit is contained in:
Manuel Ebert 2016-01-11 12:08:05 -08:00
parent 87aeb17b2c
commit 44e243a629

View file

@ -49,7 +49,7 @@ SENTENCE_SPLITTER = re.compile(r"""
def getpass(prompt="Password: "): def getpass(prompt="Password: "):
if not TEST: if not TEST:
return gp.getpass(prompt) return gp.getpass(bytes(prompt))
else: else:
return py23_input(prompt) return py23_input(prompt)