summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-04-14 14:30:43 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-04-14 14:30:43 (GMT)
commitce4d9c2f5180272f05d5ea65db07b2898a27ef28 (patch)
tree29d2e4e14fe53b12ac1a7f2a20ac89caec142c05 /Lib
parentae04491fd0952b2254917e76ed6a85a0921f779e (diff)
parent604453c9cea5dfcc5c6373028d0c30a4bd4f94f2 (diff)
downloadcpython-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.py1
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)