Skip to content

Commit 8f8ec92

Browse files
Issue python#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.
2 parents 5cacb84 + aea79dd commit 8f8ec92

92 files changed

Lines changed: 8 additions & 70 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Lib/difflib.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#! /usr/bin/env python3
2-
31
"""
42
Module difflib -- helpers for computing deltas between objects.
53

‎Lib/http/cookies.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/usr/bin/env python3
2-
#
3-
41
####
52
# Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu>
63
#

‎Lib/lib2to3/tests/data/different_encoding.py‎

100644100755
File mode changed.

‎Lib/lib2to3/tests/data/false_encoding.py‎

100644100755
File mode changed.

‎Lib/mailbox.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#! /usr/bin/env python3
2-
31
"""Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes."""
42

53
# Notes for authors of new mailbox subclasses:

‎Lib/operator.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
"""
32
Operator Interface
43

‎Lib/smtplib.py‎

100644100755
File mode changed.

‎Lib/tarfile.py‎

100644100755
File mode changed.

‎Lib/test/_test_multiprocessing.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python3
2-
31
#
42
# Unit tests for the multiprocessing package
53
#

‎Lib/test/crashers/recursive_call.py‎

100644100755
File mode changed.

0 commit comments

Comments
 (0)