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 | fcb17a4bba4a351d97ed7592c3cf79b8c220f748 (patch) | |
| tree | 55313df305122d484c278b6ffaf4153b7b1c9857 /sphinx | |
| parent | 8c5d541a8e3daf9aba4b44ed2f7ea55afb5a8d9c (diff) | |
| download | sphinx-fcb17a4bba4a351d97ed7592c3cf79b8c220f748.tar.gz | |
Fix quickstart on Windows with pyreadline (which comes without __doc__)
Diffstat (limited to 'sphinx')
| -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 b570f571..e480923d 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") |
