summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-01-16 15:33:23 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-01-16 15:33:23 (GMT)
commit8f8ec92de85b40b9e7bec81ae87f18cc3996c560 (patch)
tree4aaf0102840557e349731d720f3ca7fe690baa5c /Tools
parent5cacb84d836bd1f618702adaf0c6e704268f677d (diff)
parentaea79dd2c622a9b2a52e0b511e48ca86e0df9134 (diff)
downloadcpython-8f8ec92de85b40b9e7bec81ae87f18cc3996c560.zip
cpython-8f8ec92de85b40b9e7bec81ae87f18cc3996c560.tar.gz
cpython-8f8ec92de85b40b9e7bec81ae87f18cc3996c560.tar.bz2
Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/clinic/clinic_test.py2
-rwxr-xr-x[-rw-r--r--]Tools/gdb/libpython.py0
-rwxr-xr-x[-rw-r--r--]Tools/i18n/makelocalealias.py0
-rwxr-xr-x[-rw-r--r--]Tools/pybench/Setup.py0
-rwxr-xr-x[-rw-r--r--]Tools/pybench/clockres.py0
-rwxr-xr-x[-rw-r--r--]Tools/pybench/systimes.py0
-rw-r--r--[-rwxr-xr-x]Tools/scripts/analyze_dxp.py0
-rwxr-xr-x[-rw-r--r--]Tools/scripts/checkpip.py2
-rw-r--r--[-rwxr-xr-x]Tools/scripts/run_tests.py0
-rw-r--r--[-rwxr-xr-x]Tools/scripts/win_add2path.py0
-rwxr-xr-x[-rw-r--r--]Tools/ssl/make_ssl_data.py0
-rw-r--r--[-rwxr-xr-x]Tools/stringbench/stringbench.py0
-rwxr-xr-x[-rw-r--r--]Tools/unicode/comparecodecs.py0
-rwxr-xr-x[-rw-r--r--]Tools/unittestgui/unittestgui.py2
14 files changed, 2 insertions, 4 deletions
diff --git a/Tools/clinic/clinic_test.py b/Tools/clinic/clinic_test.py
index e6c5c6c..27ff0cb 100644
--- a/Tools/clinic/clinic_test.py
+++ b/Tools/clinic/clinic_test.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-#
# Argument Clinic
# Copyright 2012-2013 by Larry Hastings.
# Licensed to the PSF under a contributor agreement.
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 2ad22e2..2ad22e2 100644..100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
diff --git a/Tools/i18n/makelocalealias.py b/Tools/i18n/makelocalealias.py
index 10887ce..10887ce 100644..100755
--- a/Tools/i18n/makelocalealias.py
+++ b/Tools/i18n/makelocalealias.py
diff --git a/Tools/pybench/Setup.py b/Tools/pybench/Setup.py
index 21e654a..21e654a 100644..100755
--- a/Tools/pybench/Setup.py
+++ b/Tools/pybench/Setup.py
diff --git a/Tools/pybench/clockres.py b/Tools/pybench/clockres.py
index d7f1ac8..d7f1ac8 100644..100755
--- a/Tools/pybench/clockres.py
+++ b/Tools/pybench/clockres.py
diff --git a/Tools/pybench/systimes.py b/Tools/pybench/systimes.py
index 5e00891..5e00891 100644..100755
--- a/Tools/pybench/systimes.py
+++ b/Tools/pybench/systimes.py
diff --git a/Tools/scripts/analyze_dxp.py b/Tools/scripts/analyze_dxp.py
index bde931e..bde931e 100755..100644
--- a/Tools/scripts/analyze_dxp.py
+++ b/Tools/scripts/analyze_dxp.py
diff --git a/Tools/scripts/checkpip.py b/Tools/scripts/checkpip.py
index 835101e..8a64eda 100644..100755
--- a/Tools/scripts/checkpip.py
+++ b/Tools/scripts/checkpip.py
@@ -1,4 +1,4 @@
-#/usr/bin/env python3
+#!/usr/bin/env python3
"""
Checks that the version of the projects bundled in ensurepip are the latest
versions available.
diff --git a/Tools/scripts/run_tests.py b/Tools/scripts/run_tests.py
index e2a2050..e2a2050 100755..100644
--- a/Tools/scripts/run_tests.py
+++ b/Tools/scripts/run_tests.py
diff --git a/Tools/scripts/win_add2path.py b/Tools/scripts/win_add2path.py
index c85bea5..c85bea5 100755..100644
--- a/Tools/scripts/win_add2path.py
+++ b/Tools/scripts/win_add2path.py
diff --git a/Tools/ssl/make_ssl_data.py b/Tools/ssl/make_ssl_data.py
index 10244d1..10244d1 100644..100755
--- a/Tools/ssl/make_ssl_data.py
+++ b/Tools/ssl/make_ssl_data.py
diff --git a/Tools/stringbench/stringbench.py b/Tools/stringbench/stringbench.py
index 5abc25a..5abc25a 100755..100644
--- a/Tools/stringbench/stringbench.py
+++ b/Tools/stringbench/stringbench.py
diff --git a/Tools/unicode/comparecodecs.py b/Tools/unicode/comparecodecs.py
index 6525ddf..6525ddf 100644..100755
--- a/Tools/unicode/comparecodecs.py
+++ b/Tools/unicode/comparecodecs.py
diff --git a/Tools/unittestgui/unittestgui.py b/Tools/unittestgui/unittestgui.py
index 09a20e2..c3b5fa4 100644..100755
--- a/Tools/unittestgui/unittestgui.py
+++ b/Tools/unittestgui/unittestgui.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
GUI framework and application for use with Python unit testing framework.
Execute tests written using the framework provided by the 'unittest' module.