diff options
| author | shimizukawa <shimizukawa@gmail.com> | 2012-11-28 23:21:02 +0900 |
|---|---|---|
| committer | shimizukawa <shimizukawa@gmail.com> | 2012-11-28 23:21:02 +0900 |
| commit | e31620fb477769a2fc01b49d1d94b3cce25c8d36 (patch) | |
| tree | 8494f6bc56d4af66880c74d25204e1184de29ede /sphinx/quickstart.py | |
| parent | 4eca27e2f8e6f69a57ff3f6c2c5c8908ae199e95 (diff) | |
| download | sphinx-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.py | 2 |
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): |
