Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cbdb3a1

Browse filesBrowse files
committed
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
1 parent 2d051f2 commit cbdb3a1
Copy full SHA for cbdb3a1

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎doc/conf.py

Copy file name to clipboardExpand all lines: doc/conf.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353

5454
autosummary_generate = True
5555

56-
if sphinx.__version__ >= 1.1:
57-
autodoc_docstring_signature = True
56+
autodoc_docstring_signature = True
5857

5958
# Add any paths that contain templates here, relative to this directory.
6059
templates_path = ['_templates']

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.