Unverified Commit a10d4adc authored by teor's avatar teor
Browse files

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.
parent 57999e33
Loading
Loading
Loading
Loading

changes/ticket29913

0 → 100644
+4 −0
Original line number Diff line number Diff line
  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.
+1 −1
Original line number Diff line number Diff line
#!/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
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/python3
#!/usr/bin/python

"""
Best-practices tracker for Tor source code.
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/python3
#!/usr/bin/python

import os
import os.path
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/python3
#!/usr/bin/python

#   This software has been dedicated to the public domain under the CC0
#   public domain dedication.
Loading