From: Kevin Brown Date: Mon, 6 May 2019 14:07:48 +0000 (-0400) Subject: Fix tox docs-html builds X-Git-Tag: 2.10.2~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F982%2Fhead;p=thirdparty%2Fjinja.git Fix tox docs-html builds These have been broken for about a month now because of the upgrade to Sphinx 2. This upgrade happened automatically because we do not have the version pinned. Luckily this issue appears to only be from having Python 2 syntax in the docs script, so making that compatible with Python 3 fixes the error and allows the docs to pass. --- diff --git a/docs/conf.py b/docs/conf.py index 6e990be1..03169cd7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -46,10 +46,10 @@ import pkg_resources try: release = pkg_resources.get_distribution('Jinja2').version except ImportError: - print 'To build the documentation, The distribution information of Jinja2' - print 'Has to be available. Either install the package into your' - print 'development environment or run "setup.py develop" to setup the' - print 'metadata. A virtualenv is recommended!' + print('To build the documentation, The distribution information of Jinja2') + print('Has to be available. Either install the package into your') + print('development environment or run "setup.py develop" to setup the') + print('metadata. A virtualenv is recommended!') sys.exit(1) if 'dev' in release: release = release.split('dev')[0] + 'dev'