summaryrefslogtreecommitdiff
path: root/sphinx/quickstart.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2012-11-28 23:21:02 +0900
committershimizukawa <shimizukawa@gmail.com>2012-11-28 23:21:02 +0900
commite31620fb477769a2fc01b49d1d94b3cce25c8d36 (patch)
tree8494f6bc56d4af66880c74d25204e1184de29ede /sphinx/quickstart.py
parent4eca27e2f8e6f69a57ff3f6c2c5c8908ae199e95 (diff)
downloadsphinx-e31620fb477769a2fc01b49d1d94b3cce25c8d36.tar.gz
fix: sphinx-quickstart asks again and again Y|N because input() return value with extra '\r' on Python-3.2.0 + Windows. closes #1043
Diffstat (limited to 'sphinx/quickstart.py')
-rw-r--r--sphinx/quickstart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py
index 2bba4459..64c2e23c 100644
--- a/sphinx/quickstart.py
+++ b/sphinx/quickstart.py
@@ -824,7 +824,7 @@ def do_prompt(d, key, text, default=None, validator=nonempty):
prompt = purple(PROMPT_PREFIX + '%s [%s]: ' % (text, default))
else:
prompt = purple(PROMPT_PREFIX + text + ': ')
- x = term_input(prompt)
+ x = term_input(prompt).strip()
if default and not x:
x = default
if not isinstance(x, unicode):