Stop assuming that /usr/bin/python3 exists

For scripts that work with python2, use /usr/bin/python.
Otherwise, use /usr/bin/env python3.

Fixes bug 29913; bugfix on 0.2.5.3-alpha.
This commit is contained in:
teor 2019-03-27 11:07:55 +10:00
parent 57999e330b
commit a10d4adc25
No known key found for this signature in database
GPG key ID: 10FEAA0E7075672A
6 changed files with 9 additions and 5 deletions

4
changes/ticket29913 Normal file
View file

@ -0,0 +1,4 @@
o Minor bugfixes (python):
- Stop assuming that /usr/bin/python3 exists. For scripts that work with
python2, use /usr/bin/python. Otherwise, use /usr/bin/env python3.
Fixes bug 29913; bugfix on 0.2.5.3-alpha.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/python
# Copyright 2018 The Tor Project, Inc. See LICENSE file for licensing info.
"""This script looks through all the directories for files matching *.c or

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/python
"""
Best-practices tracker for Tor source code.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/python
import os
import os.path

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/python
# This software has been dedicated to the public domain under the CC0
# public domain dedication.

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# Copyright 2018-2019, The Tor Project, Inc. See LICENSE for licensing info.
# Reference implementation for our rudimentary OPE code, used to