Skip to content

Commit

Permalink
Merge branch 'tor-github/pr/1743'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgoulet-tor committed Feb 18, 2020
2 parents d3c23b0 + 674a821 commit 17724a7
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 17 deletions.
5 changes: 5 additions & 0 deletions changes/ticket33192
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
o Minor feature (python):
- Stop assuming that /usr/bin/python exists. Instead of using a
hardcoded path in scripts that still use Python 2, use /usr/bin/env,
similarly to the scripts that use Python 3. Fixes bug 33192; bugfix
on 0.4.2.
2 changes: 1 addition & 1 deletion contrib/client-tools/tor-resolve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

# Future imports for Python 2.7, mandatory in 3.0
from __future__ import division
Expand Down
2 changes: 1 addition & 1 deletion scripts/codegen/fuzzing_include_am.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

# Future imports for Python 2.7, mandatory in 3.0
from __future__ import division
Expand Down
2 changes: 1 addition & 1 deletion scripts/codegen/gen_server_ciphers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright 2014-2019, The Tor Project, Inc
# See LICENSE for licensing information

Expand Down
2 changes: 1 addition & 1 deletion scripts/codegen/get_mozilla_ciphers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# coding=utf-8
# Copyright 2011-2019, The Tor Project, Inc
# original version by Arturo Filastò
Expand Down
2 changes: 1 addition & 1 deletion scripts/codegen/makedesc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright 2014-2019, The Tor Project, Inc.
# See LICENSE for license information

Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/annotate_ifdef_directives.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2017-2019, The Tor Project, Inc.
# See LICENSE for licensing information

Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/checkIncludes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright 2018 The Tor Project, Inc. See LICENSE file for licensing info.

# This file is no longer here; see practracker/includes.py for this
Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/format_changelog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2014-2019, The Tor Project, Inc.
# See LICENSE for licensing information
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/lintChanges.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

# Future imports for Python 2.7, mandatory in 3.0
from __future__ import division
Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/locatemissingdoxygen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
This script parses the stderr output of doxygen and looks for undocumented
Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/practracker/includes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env 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
Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/practracker/metrics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

# Implementation of various source code metrics.
# These are currently ad-hoc string operations and regexps.
Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/practracker/practracker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

"""
Best-practices tracker for Tor source code.
Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/practracker/practracker_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

"""Some simple tests for practracker metrics"""

Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/rectify_include_paths.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

# Future imports for Python 2.7, mandatory in 3.0
from __future__ import division
Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/redox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
#
# Copyright (c) 2008-2019, The Tor Project, Inc.
# See LICENSE for licensing information.
Expand Down
2 changes: 1 addition & 1 deletion scripts/maint/sortChanges.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2014-2019, The Tor Project, Inc.
# See LICENSE for licensing information

Expand Down

0 comments on commit 17724a7

Please sign in to comment.