diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-12-02 10:59:13 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-06-07 12:57:39 +0000 |
commit | 1dc882326883b67798a60117f3d69d3cf6e3d187 (patch) | |
tree | 742c08d42e28e16ed4f7a8740bb0f21d1e26f1fe /quips.pro | |
parent | cfcb7178907d3229a04ea79b528335b7dec8bdc6 (diff) |
Upgrade quip-generation scripts to use python3
Scripts use docutils; Debian/testing has dropped python2 support for
docutils, forcing the upgrade.
Ran 2to3 and did as it told me. One print needed parentheses.
Changed #! lines and quips.pro to use python3 explicitly.
The docutils.core.publish_string() call was returning a bytes object,
where output.write() needed a string; so set output encoding.
Change-Id: I910548c7402b4bb8a22559793278dc9b5461b94d
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'quips.pro')
-rw-r--r-- | quips.pro | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ TEMPLATE = aux QUIPS += $$files($$PWD/quip-*.rst) -PYTHON = python +PYTHON = python3 GENQUIP0_PY = $$PWD/scripts/gen-quip-0000.py QUIP2HTML_PY = $$PWD/scripts/quip2html.py HTTP_PORT = 8000 |