Skip to content

Commit f758705

Browse files
committed
Fix sphinx version check
1 parent 1d23529 commit f758705

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@
2424
try:
2525
import sphinx
2626
from sphinx.setup_command import BuildDoc
27-
if sphinx.__version__ >= '1.1.3':
28-
# Sphinx 1.1.2 is buggy and building bpython with that version fails.
29-
# See #241.
30-
using_sphinx = False
31-
else:
32-
using_sphinx = True
27+
# Sphinx 1.1.2 is buggy and building bpython with that version fails.
28+
# See #241.
29+
using_sphinx = sphinx.__version__ >= '1.1.3'
3330
except ImportError:
3431
using_sphinx = False
3532

0 commit comments

Comments
 (0)