diff options
author | Stephen Finucane <stephen@that.guru> | 2018-10-05 18:05:14 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2018-12-17 09:46:18 +0000 |
commit | 5a9033e5aa87bb9b58bdd622e7bd2c9361db03cf (patch) | |
tree | 7b1affd8be10c5a999e0e5f7f00ec275f4ece3e5 | |
parent | d345d0f8c17009195f69b581cc1b6dc2da431b0e (diff) | |
download | sphinx-git-5a9033e5aa87bb9b58bdd622e7bd2c9361db03cf.tar.gz |
Specifically request Python 3
If Sphinx is Python 3-only, Sphinx's tooling should be Python 3-only
too.
Signed-off-by: Stephen Finucane <stephen@that.guru>
-rwxr-xr-x | tests/roots/test-apidoc-toc/mypackage/main.py | 3 | ||||
-rwxr-xr-x | utils/bump_version.py | 2 | ||||
-rw-r--r-- | utils/checks.py | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/tests/roots/test-apidoc-toc/mypackage/main.py b/tests/roots/test-apidoc-toc/mypackage/main.py index b3fa386fc..813db805e 100755 --- a/tests/roots/test-apidoc-toc/mypackage/main.py +++ b/tests/roots/test-apidoc-toc/mypackage/main.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 + import os import mod_resource diff --git a/utils/bump_version.py b/utils/bump_version.py index 79a1fe6a7..6491a38e3 100755 --- a/utils/bump_version.py +++ b/utils/bump_version.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import argparse import os diff --git a/utils/checks.py b/utils/checks.py index 3d421b385..25b6b2fa8 100644 --- a/utils/checks.py +++ b/utils/checks.py @@ -60,7 +60,7 @@ def sphinx_has_header(physical_line, filename, lines, line_number): # line number correction offset = 1 - if lines[0:1] == ['#!/usr/bin/env python\n']: + if lines[0:1] == ['#!/usr/bin/env python3\n']: lines = lines[1:] offset = 2 |