]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fix tox docs-html builds 982/head
authorKevin Brown <kevin@kevin-brown.com>
Mon, 6 May 2019 14:07:48 +0000 (10:07 -0400)
committerKevin Brown <kevin@kevin-brown.com>
Mon, 6 May 2019 14:07:48 +0000 (10:07 -0400)
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.

docs/conf.py

index 6e990be1c719ca8deb0ffd5ce25de637e0a4ffe3..03169cd7ae58c8cb2cf28252614043cdb94409bd 100644 (file)
@@ -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'