diff options
author | anatoly techtonik <techtonik@gmail.com> | 2014-03-08 12:34:59 +0300 |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2014-03-08 12:34:59 +0300 |
commit | 6cde08f45ed11b829bdab429600c16f90af164cc (patch) | |
tree | 55313df305122d484c278b6ffaf4153b7b1c9857 /sphinx/quickstart.py | |
parent | 5564012306846b44f5045cecb78bdac7c4f60e74 (diff) | |
download | sphinx-git-6cde08f45ed11b829bdab429600c16f90af164cc.tar.gz |
Fix quickstart on Windows with pyreadline (which comes without __doc__)
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 b570f5710..e480923d5 100644 --- a/sphinx/quickstart.py +++ b/sphinx/quickstart.py @@ -19,7 +19,7 @@ TERM_ENCODING = getattr(sys.stdin, 'encoding', None) #try to import readline, unix specific enhancement try: import readline - if 'libedit' in readline.__doc__: + if readline.__doc__ and 'libedit' in readline.__doc__: readline.parse_and_bind("bind ^I rl_complete") else: readline.parse_and_bind("tab: complete") |