[Python-checkins] cpython (3.3): Closes #19248: actually check for Python 3.x in tools/sphinx-build.py.

georg.brandl python-checkins at python.org
Sun Oct 13 22:19:22 CEST 2013


http://hg.python.org/cpython/rev/6e65ee2a0073
changeset:   86336:6e65ee2a0073
branch:      3.3
parent:      86332:19ce90930e8b
user:        Georg Brandl <georg at python.org>
date:        Sun Oct 13 22:19:49 2013 +0200
summary:
  Closes #19248: actually check for Python 3.x in tools/sphinx-build.py.

files:
  Doc/tools/sphinx-build.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/tools/sphinx-build.py b/Doc/tools/sphinx-build.py
--- a/Doc/tools/sphinx-build.py
+++ b/Doc/tools/sphinx-build.py
@@ -15,7 +15,7 @@
 
 if __name__ == '__main__':
 
-    if sys.version_info[:3] < (2, 4, 0):
+    if sys.version_info[:3] < (2, 4, 0) or sys.version_info[:3] > (3, 0, 0):
         sys.stderr.write("""\
 Error: Sphinx needs to be executed with Python 2.4 or newer (not 3.0 though).
 (If you run this from the Makefile, you can set the PYTHON variable

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list