Author: georg.brandl Date: Sat Jan 19 10:24:19 2008 New Revision: 60067 Modified: python/branches/py3k/Doc/tools/sphinx-build.py Log: Fix 3k's sphinx-build.py so that the version detection works with 2.x and 3.x.
Modified: python/branches/py3k/Doc/tools/sphinx-build.py ============================================================================== --- python/branches/py3k/Doc/tools/sphinx-build.py (original) +++ python/branches/py3k/Doc/tools/sphinx-build.py Sat Jan 19 10:24:19 2008 @@ -12,12 +12,12 @@ if __name__ == '__main__': if sys.version_info[:3] < (2, 4, 0): - print("""\ + 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 to the path of an alternative interpreter executable, e.g., ``make html PYTHON=python2.5``). -""", file=sys.stderr) +""") sys.exit(1) from sphinx import main _______________________________________________ Python-3000-checkins mailing list Python-3000-checkins@python.org http://mail.python.org/mailman/listinfo/python-3000-checkins