Skip to content

Commit c3a2916

Browse files
committed
Closes #19248: actually check for Python 3.x in tools/sphinx-build.py.
1 parent 24201d4 commit c3a2916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tools/sphinx-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
if __name__ == '__main__':
1717

18-
if sys.version_info[:3] < (2, 4, 0):
18+
if sys.version_info[:3] < (2, 4, 0) or sys.version_info[:3] > (3, 0, 0):
1919
sys.stderr.write("""\
2020
Error: Sphinx needs to be executed with Python 2.4 or newer (not 3.0 though).
2121
(If you run this from the Makefile, you can set the PYTHON variable

0 commit comments

Comments
 (0)