[Python-checkins] cpython (merge 3.3 -> default): Issue #19936: Added executable bits or shebang lines to Python scripts which
serhiy.storchaka
python-checkins at python.org
Thu Jan 16 16:37:43 CET 2014
http://hg.python.org/cpython/rev/83009d70bc9c
changeset: 88505:83009d70bc9c
parent: 88502:58cac9967cf0
parent: 88504:1100f9824b2f
user: Serhiy Storchaka <storchaka at gmail.com>
date: Thu Jan 16 17:33:23 2014 +0200
summary:
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.
files:
Lib/difflib.py | 2 --
Lib/http/cookies.py | 3 ---
Lib/lib2to3/tests/data/different_encoding.py | 0
Lib/lib2to3/tests/data/false_encoding.py | 0
Lib/mailbox.py | 2 --
Lib/operator.py | 1 -
Lib/smtplib.py | 0
Lib/tarfile.py | 0
Lib/test/_test_multiprocessing.py | 2 --
Lib/test/crashers/recursive_call.py | 0
Lib/test/curses_tests.py | 0
Lib/test/multibytecodec_support.py | 1 -
Lib/test/ssltests.py | 0
Lib/test/test___future__.py | 1 -
Lib/test/test_array.py | 1 -
Lib/test/test_binhex.py | 1 -
Lib/test/test_bz2.py | 1 -
Lib/test/test_cmd.py | 1 -
Lib/test/test_codecencodings_cn.py | 1 -
Lib/test/test_codecencodings_hk.py | 1 -
Lib/test/test_codecencodings_iso2022.py | 2 --
Lib/test/test_codecencodings_jp.py | 1 -
Lib/test/test_codecencodings_kr.py | 1 -
Lib/test/test_codecencodings_tw.py | 1 -
Lib/test/test_codecmaps_cn.py | 1 -
Lib/test/test_codecmaps_hk.py | 1 -
Lib/test/test_codecmaps_jp.py | 1 -
Lib/test/test_codecmaps_kr.py | 1 -
Lib/test/test_codecmaps_tw.py | 1 -
Lib/test/test_dbm.py | 1 -
Lib/test/test_dbm_dumb.py | 1 -
Lib/test/test_eof.py | 1 -
Lib/test/test_errno.py | 1 -
Lib/test/test_gzip.py | 1 -
Lib/test/test_keywordonlyarg.py | 2 --
Lib/test/test_logging.py | 2 --
Lib/test/test_marshal.py | 2 --
Lib/test/test_multibytecodec.py | 1 -
Lib/test/test_pathlib.py | 0
Lib/test/test_popen.py | 1 -
Lib/test/test_random.py | 2 --
Lib/test/test_sched.py | 2 --
Lib/test/test_smtpnet.py | 2 --
Lib/test/test_socket.py | 2 --
Lib/test/test_support.py | 2 --
Lib/test/test_tcl.py | 2 --
Lib/test/test_urllib2_localnet.py | 2 --
Lib/test/test_urllib2net.py | 2 --
Lib/test/test_urllibnet.py | 2 --
Lib/test/test_urlparse.py | 2 --
Lib/test/test_userstring.py | 1 -
Lib/test/test_with.py | 2 --
Lib/test/test_xmlrpc_net.py | 2 --
Lib/timeit.py | 0
Lib/token.py | 0
Lib/trace.py | 0
Lib/turtledemo/bytedesign.py | 0
Lib/turtledemo/clock.py | 0
Lib/turtledemo/forest.py | 0
Lib/turtledemo/fractalcurves.py | 0
Lib/turtledemo/lindenmayer.py | 0
Lib/turtledemo/minimal_hanoi.py | 0
Lib/turtledemo/paint.py | 0
Lib/turtledemo/peace.py | 0
Lib/turtledemo/penrose.py | 0
Lib/turtledemo/planet_and_moon.py | 0
Lib/turtledemo/tree.py | 0
Lib/turtledemo/two_canvases.py | 0
Lib/turtledemo/yinyang.py | 0
Lib/webbrowser.py | 0
Mac/Tools/bundlebuilder.py | 0
Mac/Tools/plistlib_generate_testdata.py | 0
Misc/NEWS | 6 ++++++
Modules/_ctypes/libffi/generate-ios-source-and-headers.py | 0
Modules/_ctypes/libffi/generate-osx-source-and-headers.py | 0
Modules/_decimal/tests/bench.py | 0
Modules/_decimal/tests/deccheck.py | 0
Objects/typeslots.py | 0
Tools/clinic/clinic_test.py | 2 --
Tools/gdb/libpython.py | 0
Tools/i18n/makelocalealias.py | 0
Tools/pybench/Setup.py | 0
Tools/pybench/clockres.py | 0
Tools/pybench/systimes.py | 0
Tools/scripts/analyze_dxp.py | 0
Tools/scripts/checkpip.py | 2 +-
Tools/scripts/run_tests.py | 0
Tools/scripts/win_add2path.py | 0
Tools/ssl/make_ssl_data.py | 0
Tools/stringbench/stringbench.py | 0
Tools/unicode/comparecodecs.py | 0
Tools/unittestgui/unittestgui.py | 2 +-
92 files changed, 8 insertions(+), 70 deletions(-)
diff --git a/Lib/difflib.py b/Lib/difflib.py
--- a/Lib/difflib.py
+++ b/Lib/difflib.py
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
"""
Module difflib -- helpers for computing deltas between objects.
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py
--- a/Lib/http/cookies.py
+++ b/Lib/http/cookies.py
@@ -1,6 +1,3 @@
-#!/usr/bin/env python3
-#
-
####
# Copyright 2000 by Timothy O'Malley <timo at alum.mit.edu>
#
diff --git a/Lib/lib2to3/tests/data/different_encoding.py b/Lib/lib2to3/tests/data/different_encoding.py
old mode 100644
new mode 100755
diff --git a/Lib/lib2to3/tests/data/false_encoding.py b/Lib/lib2to3/tests/data/false_encoding.py
old mode 100644
new mode 100755
diff --git a/Lib/mailbox.py b/Lib/mailbox.py
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
"""Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes."""
# Notes for authors of new mailbox subclasses:
diff --git a/Lib/operator.py b/Lib/operator.py
--- a/Lib/operator.py
+++ b/Lib/operator.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
"""
Operator Interface
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
old mode 100644
new mode 100755
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
old mode 100644
new mode 100755
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
#
# Unit tests for the multiprocessing package
#
diff --git a/Lib/test/crashers/recursive_call.py b/Lib/test/crashers/recursive_call.py
old mode 100644
new mode 100755
diff --git a/Lib/test/curses_tests.py b/Lib/test/curses_tests.py
old mode 100644
new mode 100755
diff --git a/Lib/test/multibytecodec_support.py b/Lib/test/multibytecodec_support.py
--- a/Lib/test/multibytecodec_support.py
+++ b/Lib/test/multibytecodec_support.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# multibytecodec_support.py
# Common Unittest Routines for CJK codecs
diff --git a/Lib/test/ssltests.py b/Lib/test/ssltests.py
old mode 100755
new mode 100644
diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py
--- a/Lib/test/test___future__.py
+++ b/Lib/test/test___future__.py
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
import unittest
from test import support
import __future__
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
old mode 100755
new mode 100644
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
"""Test the arraymodule.
Roger E. Masse
"""
diff --git a/Lib/test/test_binhex.py b/Lib/test/test_binhex.py
old mode 100755
new mode 100644
--- a/Lib/test/test_binhex.py
+++ b/Lib/test/test_binhex.py
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
"""Test script for the binhex C module
Uses the mechanism of the python binhex module
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py
--- a/Lib/test/test_bz2.py
+++ b/Lib/test/test_bz2.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
from test import support
from test.support import bigmemtest, _4G
diff --git a/Lib/test/test_cmd.py b/Lib/test/test_cmd.py
--- a/Lib/test/test_cmd.py
+++ b/Lib/test/test_cmd.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
"""
Test script for the 'cmd' module
Original by Michael Schneider
diff --git a/Lib/test/test_codecencodings_cn.py b/Lib/test/test_codecencodings_cn.py
--- a/Lib/test/test_codecencodings_cn.py
+++ b/Lib/test/test_codecencodings_cn.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecencodings_cn.py
# Codec encoding tests for PRC encodings.
diff --git a/Lib/test/test_codecencodings_hk.py b/Lib/test/test_codecencodings_hk.py
--- a/Lib/test/test_codecencodings_hk.py
+++ b/Lib/test/test_codecencodings_hk.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecencodings_hk.py
# Codec encoding tests for HongKong encodings.
diff --git a/Lib/test/test_codecencodings_iso2022.py b/Lib/test/test_codecencodings_iso2022.py
--- a/Lib/test/test_codecencodings_iso2022.py
+++ b/Lib/test/test_codecencodings_iso2022.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
# Codec encoding tests for ISO 2022 encodings.
from test import support
diff --git a/Lib/test/test_codecencodings_jp.py b/Lib/test/test_codecencodings_jp.py
--- a/Lib/test/test_codecencodings_jp.py
+++ b/Lib/test/test_codecencodings_jp.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecencodings_jp.py
# Codec encoding tests for Japanese encodings.
diff --git a/Lib/test/test_codecencodings_kr.py b/Lib/test/test_codecencodings_kr.py
--- a/Lib/test/test_codecencodings_kr.py
+++ b/Lib/test/test_codecencodings_kr.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecencodings_kr.py
# Codec encoding tests for ROK encodings.
diff --git a/Lib/test/test_codecencodings_tw.py b/Lib/test/test_codecencodings_tw.py
--- a/Lib/test/test_codecencodings_tw.py
+++ b/Lib/test/test_codecencodings_tw.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecencodings_tw.py
# Codec encoding tests for ROC encodings.
diff --git a/Lib/test/test_codecmaps_cn.py b/Lib/test/test_codecmaps_cn.py
--- a/Lib/test/test_codecmaps_cn.py
+++ b/Lib/test/test_codecmaps_cn.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecmaps_cn.py
# Codec mapping tests for PRC encodings
diff --git a/Lib/test/test_codecmaps_hk.py b/Lib/test/test_codecmaps_hk.py
--- a/Lib/test/test_codecmaps_hk.py
+++ b/Lib/test/test_codecmaps_hk.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecmaps_hk.py
# Codec mapping tests for HongKong encodings
diff --git a/Lib/test/test_codecmaps_jp.py b/Lib/test/test_codecmaps_jp.py
--- a/Lib/test/test_codecmaps_jp.py
+++ b/Lib/test/test_codecmaps_jp.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecmaps_jp.py
# Codec mapping tests for Japanese encodings
diff --git a/Lib/test/test_codecmaps_kr.py b/Lib/test/test_codecmaps_kr.py
--- a/Lib/test/test_codecmaps_kr.py
+++ b/Lib/test/test_codecmaps_kr.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecmaps_kr.py
# Codec mapping tests for ROK encodings
diff --git a/Lib/test/test_codecmaps_tw.py b/Lib/test/test_codecmaps_tw.py
--- a/Lib/test/test_codecmaps_tw.py
+++ b/Lib/test/test_codecmaps_tw.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_codecmaps_tw.py
# Codec mapping tests for ROC encodings
diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py
--- a/Lib/test/test_dbm.py
+++ b/Lib/test/test_dbm.py
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
"""Test script for the dbm.open function based on testdumbdbm.py"""
import os
diff --git a/Lib/test/test_dbm_dumb.py b/Lib/test/test_dbm_dumb.py
--- a/Lib/test/test_dbm_dumb.py
+++ b/Lib/test/test_dbm_dumb.py
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
"""Test script for the dumbdbm module
Original by Roger E. Masse
"""
diff --git a/Lib/test/test_eof.py b/Lib/test/test_eof.py
--- a/Lib/test/test_eof.py
+++ b/Lib/test/test_eof.py
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
"""test script for a few new invalid token catches"""
import unittest
diff --git a/Lib/test/test_errno.py b/Lib/test/test_errno.py
old mode 100755
new mode 100644
--- a/Lib/test/test_errno.py
+++ b/Lib/test/test_errno.py
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
"""Test the errno module
Roger E. Masse
"""
diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py
--- a/Lib/test/test_gzip.py
+++ b/Lib/test/test_gzip.py
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
"""Test script for the gzip module.
"""
diff --git a/Lib/test/test_keywordonlyarg.py b/Lib/test/test_keywordonlyarg.py
--- a/Lib/test/test_keywordonlyarg.py
+++ b/Lib/test/test_keywordonlyarg.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
"""Unit tests for the keyword only argument specified in PEP 3102."""
__author__ = "Jiwon Seo"
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-#
# Copyright 2001-2013 by Vinay Sajip. All Rights Reserved.
#
# Permission to use, copy, modify, and distribute this software and its
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
from test import support
import array
import io
diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py
--- a/Lib/test/test_multibytecodec.py
+++ b/Lib/test/test_multibytecodec.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# test_multibytecodec.py
# Unit test for multibytecodec itself
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
old mode 100755
new mode 100644
diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py
--- a/Lib/test/test_popen.py
+++ b/Lib/test/test_popen.py
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
"""Basic tests for os.popen()
Particularly useful for platforms that fake popen.
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
import unittest
import unittest.mock
import random
diff --git a/Lib/test/test_sched.py b/Lib/test/test_sched.py
--- a/Lib/test/test_sched.py
+++ b/Lib/test/test_sched.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
import queue
import sched
import time
diff --git a/Lib/test/test_smtpnet.py b/Lib/test/test_smtpnet.py
--- a/Lib/test/test_smtpnet.py
+++ b/Lib/test/test_smtpnet.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
import unittest
from test import support
import smtplib
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
import unittest
from test import support
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
import importlib
import shutil
import sys
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
--- a/Lib/test/test_tcl.py
+++ b/Lib/test/test_tcl.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
import unittest
import sys
import os
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py
--- a/Lib/test/test_urllib2_localnet.py
+++ b/Lib/test/test_urllib2_localnet.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
import os
import email
import urllib.parse
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
import unittest
from test import support
from test.test_urllib2 import sanepathname2url
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
import unittest
from test import support
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
old mode 100755
new mode 100644
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
from test import support
import unittest
import urllib.parse
diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py
old mode 100755
new mode 100644
--- a/Lib/test/test_userstring.py
+++ b/Lib/test/test_userstring.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
# UserString is a wrapper around the native builtin string type.
# UserString instances should behave similar to builtin string objects.
diff --git a/Lib/test/test_with.py b/Lib/test/test_with.py
--- a/Lib/test/test_with.py
+++ b/Lib/test/test_with.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
"""Unit tests for the with statement specified in PEP 343."""
diff --git a/Lib/test/test_xmlrpc_net.py b/Lib/test/test_xmlrpc_net.py
--- a/Lib/test/test_xmlrpc_net.py
+++ b/Lib/test/test_xmlrpc_net.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
import collections.abc
import errno
import socket
diff --git a/Lib/timeit.py b/Lib/timeit.py
old mode 100644
new mode 100755
diff --git a/Lib/token.py b/Lib/token.py
old mode 100755
new mode 100644
diff --git a/Lib/trace.py b/Lib/trace.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/bytedesign.py b/Lib/turtledemo/bytedesign.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/clock.py b/Lib/turtledemo/clock.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/forest.py b/Lib/turtledemo/forest.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/fractalcurves.py b/Lib/turtledemo/fractalcurves.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/lindenmayer.py b/Lib/turtledemo/lindenmayer.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/minimal_hanoi.py b/Lib/turtledemo/minimal_hanoi.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/paint.py b/Lib/turtledemo/paint.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/peace.py b/Lib/turtledemo/peace.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/penrose.py b/Lib/turtledemo/penrose.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/planet_and_moon.py b/Lib/turtledemo/planet_and_moon.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/tree.py b/Lib/turtledemo/tree.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/two_canvases.py b/Lib/turtledemo/two_canvases.py
old mode 100644
new mode 100755
diff --git a/Lib/turtledemo/yinyang.py b/Lib/turtledemo/yinyang.py
old mode 100644
new mode 100755
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
old mode 100644
new mode 100755
diff --git a/Mac/Tools/bundlebuilder.py b/Mac/Tools/bundlebuilder.py
old mode 100644
new mode 100755
diff --git a/Mac/Tools/plistlib_generate_testdata.py b/Mac/Tools/plistlib_generate_testdata.py
old mode 100644
new mode 100755
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -88,6 +88,12 @@
Tools/Demos
-----------
+- 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.
+
- Issue #20268: Argument Clinic now supports cloning the parameters and
return converter of existing functions.
diff --git a/Modules/_ctypes/libffi/generate-ios-source-and-headers.py b/Modules/_ctypes/libffi/generate-ios-source-and-headers.py
old mode 100644
new mode 100755
diff --git a/Modules/_ctypes/libffi/generate-osx-source-and-headers.py b/Modules/_ctypes/libffi/generate-osx-source-and-headers.py
old mode 100644
new mode 100755
diff --git a/Modules/_decimal/tests/bench.py b/Modules/_decimal/tests/bench.py
old mode 100644
new mode 100755
diff --git a/Modules/_decimal/tests/deccheck.py b/Modules/_decimal/tests/deccheck.py
old mode 100644
new mode 100755
diff --git a/Objects/typeslots.py b/Objects/typeslots.py
old mode 100644
new mode 100755
diff --git a/Tools/clinic/clinic_test.py b/Tools/clinic/clinic_test.py
--- 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
old mode 100644
new mode 100755
diff --git a/Tools/i18n/makelocalealias.py b/Tools/i18n/makelocalealias.py
old mode 100644
new mode 100755
diff --git a/Tools/pybench/Setup.py b/Tools/pybench/Setup.py
old mode 100644
new mode 100755
diff --git a/Tools/pybench/clockres.py b/Tools/pybench/clockres.py
old mode 100644
new mode 100755
diff --git a/Tools/pybench/systimes.py b/Tools/pybench/systimes.py
old mode 100644
new mode 100755
diff --git a/Tools/scripts/analyze_dxp.py b/Tools/scripts/analyze_dxp.py
old mode 100755
new mode 100644
diff --git a/Tools/scripts/checkpip.py b/Tools/scripts/checkpip.py
old mode 100644
new mode 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
old mode 100755
new mode 100644
diff --git a/Tools/scripts/win_add2path.py b/Tools/scripts/win_add2path.py
old mode 100755
new mode 100644
diff --git a/Tools/ssl/make_ssl_data.py b/Tools/ssl/make_ssl_data.py
old mode 100644
new mode 100755
diff --git a/Tools/stringbench/stringbench.py b/Tools/stringbench/stringbench.py
old mode 100755
new mode 100644
diff --git a/Tools/unicode/comparecodecs.py b/Tools/unicode/comparecodecs.py
old mode 100644
new mode 100755
diff --git a/Tools/unittestgui/unittestgui.py b/Tools/unittestgui/unittestgui.py
old mode 100644
new mode 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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list