diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-16 16:59:17 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-16 16:59:17 (GMT) |
commit | e0ed2d75c8bce7f0fc76c55c957052aa8a0756f2 (patch) | |
tree | f7189504e53c1be575130aff11c7e5688f975784 /Lib | |
parent | 09421f82eb1394c4df933f8796ff668eb59f2492 (diff) | |
download | cpython-e0ed2d75c8bce7f0fc76c55c957052aa8a0756f2.zip cpython-e0ed2d75c8bce7f0fc76c55c957052aa8a0756f2.tar.gz cpython-e0ed2d75c8bce7f0fc76c55c957052aa8a0756f2.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.
Diffstat (limited to 'Lib')
63 files changed, 0 insertions, 78 deletions
diff --git a/Lib/Cookie.py b/Lib/Cookie.py index db32980..452d4e3 100644 --- a/Lib/Cookie.py +++ b/Lib/Cookie.py @@ -1,6 +1,3 @@ -#!/usr/bin/env python -# - #### # Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu> # diff --git a/Lib/bsddb/dbshelve.py b/Lib/bsddb/dbshelve.py index 85deb13..7d0daa2 100644 --- a/Lib/bsddb/dbshelve.py +++ b/Lib/bsddb/dbshelve.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python #------------------------------------------------------------------------ # Copyright (c) 1997-2001 by Total Control Software # All Rights Reserved diff --git a/Lib/bsddb/test/test_dbtables.py b/Lib/bsddb/test/test_dbtables.py index bb31381..250c492 100644 --- a/Lib/bsddb/test/test_dbtables.py +++ b/Lib/bsddb/test/test_dbtables.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python -# #----------------------------------------------------------------------- # A test suite for the table interface built on bsddb.db #----------------------------------------------------------------------- diff --git a/Lib/difflib.py b/Lib/difflib.py index f94b3ac..5dac1d6 100644 --- a/Lib/difflib.py +++ b/Lib/difflib.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python - """ Module difflib -- helpers for computing deltas between objects. diff --git a/Lib/encodings/rot_13.py b/Lib/encodings/rot_13.py index 52b6431..52b6431 100644..100755 --- a/Lib/encodings/rot_13.py +++ b/Lib/encodings/rot_13.py diff --git a/Lib/lib2to3/tests/data/different_encoding.py b/Lib/lib2to3/tests/data/different_encoding.py index 9f32bd0..9f32bd0 100644..100755 --- a/Lib/lib2to3/tests/data/different_encoding.py +++ b/Lib/lib2to3/tests/data/different_encoding.py diff --git a/Lib/lib2to3/tests/data/false_encoding.py b/Lib/lib2to3/tests/data/false_encoding.py index f4e59e7..f4e59e7 100644..100755 --- a/Lib/lib2to3/tests/data/false_encoding.py +++ b/Lib/lib2to3/tests/data/false_encoding.py diff --git a/Lib/mailbox.py b/Lib/mailbox.py index 4cdd7d4..ba49753 100644 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python - """Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.""" # Notes for authors of new mailbox subclasses: diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 44ecd24..e73ac90 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: iso-8859-1 -*- #------------------------------------------------------------------- # tarfile.py diff --git a/Lib/test/crashers/recursive_call.py b/Lib/test/crashers/recursive_call.py index 31c8963..31c8963 100644..100755 --- a/Lib/test/crashers/recursive_call.py +++ b/Lib/test/crashers/recursive_call.py diff --git a/Lib/test/curses_tests.py b/Lib/test/curses_tests.py index 7dedbbc..7dedbbc 100644..100755 --- a/Lib/test/curses_tests.py +++ b/Lib/test/curses_tests.py diff --git a/Lib/test/test___future__.py b/Lib/test/test___future__.py index 1d8f8e6..b573382 100644 --- a/Lib/test/test___future__.py +++ b/Lib/test/test___future__.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python import unittest from test import test_support import __future__ diff --git a/Lib/test/test_al.py b/Lib/test/test_al.py index 688576d..a00abfc 100755..100644 --- a/Lib/test/test_al.py +++ b/Lib/test/test_al.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Whimpy test script for the al module Roger E. Masse """ diff --git a/Lib/test/test_anydbm.py b/Lib/test/test_anydbm.py index a01dd0b..2412061 100644 --- a/Lib/test/test_anydbm.py +++ b/Lib/test/test_anydbm.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Test script for the anydbm module based on testdumbdbm.py """ diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 74594e4..b933cbf 100755..100644 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Test the arraymodule. Roger E. Masse """ diff --git a/Lib/test/test_binhex.py b/Lib/test/test_binhex.py index 2f89703..1f6a0aa 100755..100644 --- a/Lib/test/test_binhex.py +++ b/Lib/test/test_binhex.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Test script for the binhex C module Uses the mechanism of the python binhex module diff --git a/Lib/test/test_bsddb.py b/Lib/test/test_bsddb.py index 3a10fab..3ff020a 100755..100644 --- a/Lib/test/test_bsddb.py +++ b/Lib/test/test_bsddb.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Test script for the bsddb C module by Roger E. Masse Adapted to unittest format and expanded scope by Raymond Hettinger """ diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 99a687d..e2c222a 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python from test import test_support from test.test_support import TESTFN, _4G, bigmemtest, import_module, findfile diff --git a/Lib/test/test_cd.py b/Lib/test/test_cd.py index edaa82b..18ca586 100755..100644 --- a/Lib/test/test_cd.py +++ b/Lib/test/test_cd.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Whimpy test script for the cd module Roger E. Masse """ diff --git a/Lib/test/test_cl.py b/Lib/test/test_cl.py index 50102e9..9582282 100755..100644 --- a/Lib/test/test_cl.py +++ b/Lib/test/test_cl.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Whimpy test script for the cl module Roger E. Masse """ diff --git a/Lib/test/test_cmd.py b/Lib/test/test_cmd.py index ed9258b..2cb2c88 100644 --- a/Lib/test/test_cmd.py +++ b/Lib/test/test_cmd.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python """ 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 index 215e8de..cd102fd 100644 --- a/Lib/test/test_codecencodings_cn.py +++ b/Lib/test/test_codecencodings_cn.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # 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 index b1c2606..391c316 100644 --- a/Lib/test/test_codecencodings_hk.py +++ b/Lib/test/test_codecencodings_hk.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # 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 index 343308c..9f23628 100644 --- 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 test_support diff --git a/Lib/test/test_codecencodings_jp.py b/Lib/test/test_codecencodings_jp.py index 5f81f41..f3cf923 100644 --- a/Lib/test/test_codecencodings_jp.py +++ b/Lib/test/test_codecencodings_jp.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # 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 index 8c866a9..45ea62b 100644 --- a/Lib/test/test_codecencodings_kr.py +++ b/Lib/test/test_codecencodings_kr.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # 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 index 983d06f..c62d321 100644 --- a/Lib/test/test_codecencodings_tw.py +++ b/Lib/test/test_codecencodings_tw.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # 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 index 344fc56..9f42858 100644 --- a/Lib/test/test_codecmaps_cn.py +++ b/Lib/test/test_codecmaps_cn.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # 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 index 362ab7f..7ba191b 100644 --- a/Lib/test/test_codecmaps_hk.py +++ b/Lib/test/test_codecmaps_hk.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # 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 index 5466a98..0bf43b6 100644 --- a/Lib/test/test_codecmaps_jp.py +++ b/Lib/test/test_codecmaps_jp.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # 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 index 39c612e..b2513ea 100644 --- a/Lib/test/test_codecmaps_kr.py +++ b/Lib/test/test_codecmaps_kr.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # 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 index 143ae23..ff6a356 100644 --- a/Lib/test/test_codecmaps_tw.py +++ b/Lib/test/test_codecmaps_tw.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # # test_codecmaps_tw.py # Codec mapping tests for ROC encodings diff --git a/Lib/test/test_dl.py b/Lib/test/test_dl.py index 6069a77..da9730f 100755..100644 --- a/Lib/test/test_dl.py +++ b/Lib/test/test_dl.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Test dlmodule.c Roger E. Masse revised strategy by Barry Warsaw """ diff --git a/Lib/test/test_dumbdbm.py b/Lib/test/test_dumbdbm.py index abdfbc0..6f5324f 100644 --- a/Lib/test/test_dumbdbm.py +++ b/Lib/test/test_dumbdbm.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """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 index 763917f..7de4686 100644 --- a/Lib/test/test_eof.py +++ b/Lib/test/test_eof.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """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 index bb8918f..7a37d3a 100755..100644 --- a/Lib/test/test_errno.py +++ b/Lib/test/test_errno.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Test the errno module Roger E. Masse """ diff --git a/Lib/test/test_gl.py b/Lib/test/test_gl.py index c9264ee..92e1e8d 100755..100644 --- a/Lib/test/test_gl.py +++ b/Lib/test/test_gl.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Very simple test script for the SGI gl library extension module taken mostly from the documentation. Roger E. Masse diff --git a/Lib/test/test_gzip.py b/Lib/test/test_gzip.py index a82c56e..aa56ed3 100644 --- a/Lib/test/test_gzip.py +++ b/Lib/test/test_gzip.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Test script for the gzip module. """ diff --git a/Lib/test/test_imageop.py b/Lib/test/test_imageop.py index 56320fb..31edbd1 100755..100644 --- a/Lib/test/test_imageop.py +++ b/Lib/test/test_imageop.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python - """Test script for the imageop module. This has the side effect of partially testing the imgfile module as well. Roger E. Masse diff --git a/Lib/test/test_imgfile.py b/Lib/test/test_imgfile.py index 39e8917..67a2315 100755..100644 --- a/Lib/test/test_imgfile.py +++ b/Lib/test/test_imgfile.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python - """Simple test script for imgfile.c Roger E. Masse """ diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 0c10580..677f013 100644 --- 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 index f7cd195..59fa3eb 100644 --- a/Lib/test/test_marshal.py +++ b/Lib/test/test_marshal.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: iso-8859-1 -*- from test import test_support diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py index 2afe9de..8aca381 100644 --- a/Lib/test/test_multibytecodec.py +++ b/Lib/test/test_multibytecodec.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python -# # test_multibytecodec.py # Unit test for multibytecodec itself # diff --git a/Lib/test/test_multibytecodec_support.py b/Lib/test/test_multibytecodec_support.py index 3955663..c5dcfa3 100644 --- a/Lib/test/test_multibytecodec_support.py +++ b/Lib/test/test_multibytecodec_support.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python -# # test_multibytecodec_support.py # Common Unittest Routines for CJK codecs # diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 956c036..42f6dd9 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - # # Unit tests for the multiprocessing package # diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py index 92b5e92..82d4621 100644 --- a/Lib/test/test_popen.py +++ b/Lib/test/test_popen.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Basic tests for os.popen() Particularly useful for platforms that fake popen. diff --git a/Lib/test/test_popen2.py b/Lib/test/test_popen2.py index ea41075..4a745e2 100644 --- a/Lib/test/test_popen2.py +++ b/Lib/test/test_popen2.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Test script for popen2.py""" import warnings diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index 911bdec..ba447ee 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import unittest import random import time diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py index 0754ed7..319bdcb 100644 --- a/Lib/test/test_sets.py +++ b/Lib/test/test_sets.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import unittest, operator, copy, pickle, random from test import test_support diff --git a/Lib/test/test_smtpnet.py b/Lib/test/test_smtpnet.py index 2dc39eb..00ce9dd 100644 --- a/Lib/test/test_smtpnet.py +++ b/Lib/test/test_smtpnet.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import unittest from test import test_support import smtplib diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 0bce1b4..549e79c 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import unittest from test import test_support diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index ec21f07..d02b439 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import unittest import sys import os diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py index 0802f69..2e87f11 100644 --- a/Lib/test/test_urllib2_localnet.py +++ b/Lib/test/test_urllib2_localnet.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import urlparse import urllib2 import BaseHTTPServer diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index 4d73ac0..d22b59e 100644 --- a/Lib/test/test_urllib2net.py +++ b/Lib/test/test_urllib2net.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import unittest from test import test_support from test.test_urllib2 import sanepathname2url diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py index 4ce7a9b..cc65d99 100644 --- a/Lib/test/test_urllibnet.py +++ b/Lib/test/test_urllibnet.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - import unittest from test import test_support diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py index 72ebfaa..13dd297 100644 --- a/Lib/test/test_urlparse.py +++ b/Lib/test/test_urlparse.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python - from test import test_support import unittest import urlparse diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py index 2625985..51d8e8b 100755..100644 --- a/Lib/test/test_userstring.py +++ b/Lib/test/test_userstring.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # 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_whichdb.py b/Lib/test/test_whichdb.py index 427e323..91ab7f9 100644 --- a/Lib/test/test_whichdb.py +++ b/Lib/test/test_whichdb.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python """Test script for the whichdb module based on test_anydbm.py """ diff --git a/Lib/test/test_with.py b/Lib/test/test_with.py index 49645183..e7dd001 100644 --- a/Lib/test/test_with.py +++ b/Lib/test/test_with.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python - """Unit tests for the with statement specified in PEP 343.""" diff --git a/Lib/timeit.py b/Lib/timeit.py index da9e819..da9e819 100644..100755 --- a/Lib/timeit.py +++ b/Lib/timeit.py diff --git a/Lib/token.py b/Lib/token.py index 34abf62..45825b4 100755..100644 --- a/Lib/token.py +++ b/Lib/token.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python - """Token constants (from "token.h").""" # This file is automatically generated; please don't muck it up! diff --git a/Lib/trace.py b/Lib/trace.py index 38a13e2..38a13e2 100644..100755 --- a/Lib/trace.py +++ b/Lib/trace.py diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index d3272a0..d3272a0 100644..100755 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py |