From 6cde08f45ed11b829bdab429600c16f90af164cc Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Sat, 8 Mar 2014 12:34:59 +0300 Subject: [PATCH] Fix quickstart on Windows with pyreadline (which comes without __doc__) --- sphinx/quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")