diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-04-14 14:30:43 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-04-14 14:30:43 (GMT) |
commit | ce4d9c2f5180272f05d5ea65db07b2898a27ef28 (patch) | |
tree | 29d2e4e14fe53b12ac1a7f2a20ac89caec142c05 /Lib | |
parent | ae04491fd0952b2254917e76ed6a85a0921f779e (diff) | |
parent | 604453c9cea5dfcc5c6373028d0c30a4bd4f94f2 (diff) | |
download | cpython-ce4d9c2f5180272f05d5ea65db07b2898a27ef28.zip cpython-ce4d9c2f5180272f05d5ea65db07b2898a27ef28.tar.gz cpython-ce4d9c2f5180272f05d5ea65db07b2898a27ef28.tar.bz2 |
Merge: #21169: add comment and doc update for getpass change.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/getpass.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/getpass.py b/Lib/getpass.py index 2740363..7c4e976 100644 --- a/Lib/getpass.py +++ b/Lib/getpass.py @@ -138,6 +138,7 @@ def _raw_input(prompt="", stream=None, input=None): try: stream.write(prompt) except UnicodeEncodeError: + # Use replace error handler to get as much as possible printed. prompt = prompt.encode(stream.encoding, 'replace') prompt = prompt.decode(stream.encoding) stream.write(prompt) |