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>
This commit is contained in:
Stephen Finucane
2018-10-05 18:05:14 +01:00
parent d345d0f8c1
commit 5a9033e5aa
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import mod_resource

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
import os

View File

@@ -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