diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-08-25 11:08:29 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-08-25 11:08:29 +0900 |
commit | 35731502688bd0abb902c02e89dbe421849ee5d5 (patch) | |
tree | 3b64e9ad487a09356d111b6fb7ad4f2f15173b49 /sphinx/quickstart.py | |
parent | 634c99cc5e749f9a734e38f3e55f41565492a3c5 (diff) | |
download | sphinx-git-35731502688bd0abb902c02e89dbe421849ee5d5.tar.gz |
quickstart: do_prompt() allows empty string as default value
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 789b57bd2..3621742e5 100644 --- a/sphinx/quickstart.py +++ b/sphinx/quickstart.py @@ -142,7 +142,7 @@ def term_decode(text): def do_prompt(d, key, text, default=None, validator=nonempty): while True: - if default: + if default is not None: prompt = PROMPT_PREFIX + '%s [%s]: ' % (text, default) else: prompt = PROMPT_PREFIX + text + ': ' |