From cbdb3a1fcf4e05c70c0e8e3888c54d03386b8c20 Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Mon, 16 Dec 2013 13:42:44 +0100 Subject: [PATCH] Remove a redundant comparison that raises an exception in Python 3 sphinx.__version__ is a string, 1.1 is a float: the comparison always returns True in Python 2. In Python 3 however the > <, <=, > and >= operators will raise a TypeError exception when > comparing a complex number with another built-in numeric type, when > the objects are of different types that cannot be compared, or in > other cases where there is no defined ordering [0]. str and float are such unorderable types. [0] http://docs.python.org/3.3/library/stdtypes.html#comparisons --- doc/conf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 716aa7e90df0..0431f695e5e7 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -53,8 +53,7 @@ autosummary_generate = True -if sphinx.__version__ >= 1.1: - autodoc_docstring_signature = True +autodoc_docstring_signature = True # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']