commit | 604453c9cea5dfcc5c6373028d0c30a4bd4f94f2 | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Mon Apr 14 10:28:58 2014 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Mon Apr 14 10:28:58 2014 -0400 |
tree | 2b9f009ad242d9e2df952be6814bafd1f87343b5 | |
parent | 04d8a245f162b33e6c861ba0869918d9262be63e [diff] [blame] |
#21169: add comment and doc update for getpass change.
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 @@ 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)