mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
|
||||
import mod_resource
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import os
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user