]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-118673: Remove shebang and executable bits from stdlib modules. (#119658)
authorJason R. Coombs <jaraco@jaraco.com>
Wed, 29 May 2024 16:43:19 +0000 (12:43 -0400)
committerGitHub <noreply@github.com>
Wed, 29 May 2024 16:43:19 +0000 (12:43 -0400)
* gh-118673: Remove shebang and executable bits from stdlib modules.

* Removed shebangs and exe bits on turtledemo scripts.

The setting was inappropriate for '__main__' and inconsistent across the other modules. The scripts can still be executed directly by invoking with the desired interpreter.

28 files changed:
Lib/base64.py [changed mode: 0755->0644]
Lib/cProfile.py [changed mode: 0755->0644]
Lib/pdb.py [changed mode: 0755->0644]
Lib/platform.py [changed mode: 0755->0644]
Lib/profile.py [changed mode: 0755->0644]
Lib/pydoc.py [changed mode: 0755->0644]
Lib/quopri.py [changed mode: 0755->0644]
Lib/smtplib.py [changed mode: 0755->0644]
Lib/tabnanny.py [changed mode: 0755->0644]
Lib/tarfile.py [changed mode: 0755->0644]
Lib/timeit.py [changed mode: 0755->0644]
Lib/trace.py [changed mode: 0755->0644]
Lib/turtledemo/__main__.py [changed mode: 0755->0644]
Lib/turtledemo/bytedesign.py [changed mode: 0755->0644]
Lib/turtledemo/clock.py [changed mode: 0755->0644]
Lib/turtledemo/forest.py [changed mode: 0755->0644]
Lib/turtledemo/fractalcurves.py [changed mode: 0755->0644]
Lib/turtledemo/lindenmayer.py [changed mode: 0755->0644]
Lib/turtledemo/minimal_hanoi.py [changed mode: 0755->0644]
Lib/turtledemo/paint.py [changed mode: 0755->0644]
Lib/turtledemo/peace.py [changed mode: 0755->0644]
Lib/turtledemo/penrose.py [changed mode: 0755->0644]
Lib/turtledemo/planet_and_moon.py [changed mode: 0755->0644]
Lib/turtledemo/sorting_animate.py [changed mode: 0755->0644]
Lib/turtledemo/tree.py [changed mode: 0755->0644]
Lib/turtledemo/yinyang.py [changed mode: 0755->0644]
Lib/webbrowser.py [changed mode: 0755->0644]
Misc/NEWS.d/next/Library/2024-05-06-17-39-52.gh-issue-118673.sTXBit.rst [new file with mode: 0644]

old mode 100755 (executable)
new mode 100644 (file)
index 5a7e790..61be4fb
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
 """Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings"""
 
 # Modified 04-Oct-1995 by Jack Jansen to use binascii module
old mode 100755 (executable)
new mode 100644 (file)
index 9c13237..e7c868b
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
 """Python interface for the 'lsprof' profiler.
    Compatible with the 'profile' module.
 """
old mode 100755 (executable)
new mode 100644 (file)
index 0f791d7..ba84a29
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
 """
 The Python Debugger Pdb
 =======================
old mode 100755 (executable)
new mode 100644 (file)
index 5958382..a4fd246
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 """ This module tries to retrieve as much platform-identifying data as
     possible. It makes this information available via function APIs.
 
old mode 100755 (executable)
new mode 100644 (file)
index f2f8c2f..a5afb12
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
 #
 # Class for profiling python code. rev 1.0  6/2/94
 #
old mode 100755 (executable)
new mode 100644 (file)
index 55ccf21..5d854c5
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """Generate Python documentation in HTML or text for interactive use.
 
 At the Python interactive prompt, calling help(thing) on a Python object
old mode 100755 (executable)
new mode 100644 (file)
index f36cf7b..129fd2f
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
 """Conversions to/from quoted-printable transport encoding as per RFC 1521."""
 
 # (Dec 1991 version).
old mode 100755 (executable)
new mode 100644 (file)
index 75163f7..84d6d85
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
 '''SMTP/ESMTP client class.
 
 This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
old mode 100755 (executable)
new mode 100644 (file)
index e2ac683..7e56d4a
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
 """The Tab Nanny despises ambiguous indentation.  She knows no mercy.
 
 tabnanny -- Detection of ambiguous indentation
old mode 100755 (executable)
new mode 100644 (file)
index f817b57..d5d8a46
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 #-------------------------------------------------------------------
 # tarfile.py
 #-------------------------------------------------------------------
old mode 100755 (executable)
new mode 100644 (file)
index 02cfafa..c106e0f
@@ -1,5 +1,3 @@
-#! /usr/bin/env python3
-
 """Tool for measuring execution time of small code snippets.
 
 This module avoids a number of common traps for measuring execution
old mode 100755 (executable)
new mode 100644 (file)
index 8550475..bb3d34f
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 # portions copyright 2001, Autonomous Zones Industries, Inc., all rights...
 # err...  reserved and offered to the public under the terms of the
 # Python 2.2 license.
old mode 100755 (executable)
new mode 100644 (file)
index 731f98b..06a6408
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 """
   ----------------------------------------------
       turtleDemo - Help
old mode 100755 (executable)
new mode 100644 (file)
index 1b7452b..476cdaa
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """      turtle-example-suite:
 
         tdemo_bytedesign.py
old mode 100755 (executable)
new mode 100644 (file)
index 9f8585b..fd3b399
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 # -*- coding: cp1252 -*-
 """       turtle-example-suite:
 
old mode 100755 (executable)
new mode 100644 (file)
index 55b7da9..cac5532
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """     turtlegraphics-example-suite:
 
              tdemo_forest.py
old mode 100755 (executable)
new mode 100644 (file)
index 54ade96..fda193e
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """      turtle-example-suite:
 
         tdemo_fractalCurves.py
old mode 100755 (executable)
new mode 100644 (file)
index 3925f25..7c7a847
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """       turtle-example-suite:
 
         xtx_lindenmayer_indian.py
old mode 100755 (executable)
new mode 100644 (file)
index 4a432f2..08d8b63
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """       turtle-example-suite:
 
          tdemo_minimal_hanoi.py
old mode 100755 (executable)
new mode 100644 (file)
index fc6852a..6e63d00
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """       turtle-example-suite:
 
             tdemo_paint.py
old mode 100755 (executable)
new mode 100644 (file)
index e2ba928..fd6abe3
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """       turtle-example-suite:
 
               tdemo_peace.py
old mode 100755 (executable)
new mode 100644 (file)
index 045722a..ac12c89
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """       xturtle-example-suite:
 
           xtx_kites_and_darts.py
old mode 100755 (executable)
new mode 100644 (file)
index 021ff99..c0e2c5b
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """       turtle-example-suite:
 
         tdemo_planets_and_moon.py
old mode 100755 (executable)
new mode 100644 (file)
index d25a0ab..55735cd
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """
 
          sorting_animation.py
old mode 100755 (executable)
new mode 100644 (file)
index 98a20da..12729e2
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """      turtle-example-suite:
 
              tdemo_tree.py
old mode 100755 (executable)
new mode 100644 (file)
index 11d1f47..791060d
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 """       turtle-example-suite:
 
             tdemo_yinyang.py
old mode 100755 (executable)
new mode 100644 (file)
index b7fbc41..6fca257
@@ -1,4 +1,3 @@
-#! /usr/bin/env python3
 """Interfaces for launching and remotely controlling web browsers."""
 # Maintained by Georg Brandl.
 
diff --git a/Misc/NEWS.d/next/Library/2024-05-06-17-39-52.gh-issue-118673.sTXBit.rst b/Misc/NEWS.d/next/Library/2024-05-06-17-39-52.gh-issue-118673.sTXBit.rst
new file mode 100644 (file)
index 0000000..f0a87d2
--- /dev/null
@@ -0,0 +1 @@
+Removed executable bits and shebang from stdlib modules.