diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2024-05-29 12:43:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 12:43:19 -0400 |
commit | c8b45a385ab85c3f3463b1e7394c515e892dfba7 (patch) | |
tree | 3155dfeed5e036d9110135e124a5af26618967dc /Lib | |
parent | 659cb7e6b8e83e1541fc27fd29d4846e940b600e (diff) | |
download | cpython-c8b45a385ab85c3f3463b1e7394c515e892dfba7.tar.gz cpython-c8b45a385ab85c3f3463b1e7394c515e892dfba7.zip |
gh-118673: Remove shebang and executable bits from stdlib modules. (#119658)
* 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.
Diffstat (limited to 'Lib')
-rw-r--r--[-rwxr-xr-x] | Lib/base64.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/cProfile.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/pdb.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/platform.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/profile.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/pydoc.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/quopri.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/smtplib.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/tabnanny.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/tarfile.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/timeit.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/trace.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/__main__.py | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/bytedesign.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/clock.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/forest.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/fractalcurves.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/lindenmayer.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/minimal_hanoi.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/paint.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/peace.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/penrose.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/planet_and_moon.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/sorting_animate.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/tree.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/turtledemo/yinyang.py | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | Lib/webbrowser.py | 1 |
27 files changed, 0 insertions, 37 deletions
diff --git a/Lib/base64.py b/Lib/base64.py index 5a7e790a193..61be4fb856e 100755..100644 --- a/Lib/base64.py +++ b/Lib/base64.py @@ -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 diff --git a/Lib/cProfile.py b/Lib/cProfile.py index 9c132372dc4..e7c868b8d55 100755..100644 --- a/Lib/cProfile.py +++ b/Lib/cProfile.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python3 - """Python interface for the 'lsprof' profiler. Compatible with the 'profile' module. """ diff --git a/Lib/pdb.py b/Lib/pdb.py index 0f791d71950..ba84a29aa2f 100755..100644 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python3 - """ The Python Debugger Pdb ======================= diff --git a/Lib/platform.py b/Lib/platform.py index 5958382276e..a4fd2463f15 100755..100644 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -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. diff --git a/Lib/profile.py b/Lib/profile.py index f2f8c2f2133..a5afb12c9d1 100755..100644 --- a/Lib/profile.py +++ b/Lib/profile.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python3 # # Class for profiling python code. rev 1.0 6/2/94 # diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 55ccf2152c2..5d854c50f40 100755..100644 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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 diff --git a/Lib/quopri.py b/Lib/quopri.py index f36cf7b3951..129fd2f5c7c 100755..100644 --- a/Lib/quopri.py +++ b/Lib/quopri.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python3 - """Conversions to/from quoted-printable transport encoding as per RFC 1521.""" # (Dec 1991 version). diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 75163f75781..84d6d858e7d 100755..100644 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python3 - '''SMTP/ESMTP client class. This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP diff --git a/Lib/tabnanny.py b/Lib/tabnanny.py index e2ac6837f15..7e56d4a48d1 100755..100644 --- a/Lib/tabnanny.py +++ b/Lib/tabnanny.py @@ -1,5 +1,3 @@ -#! /usr/bin/env python3 - """The Tab Nanny despises ambiguous indentation. She knows no mercy. tabnanny -- Detection of ambiguous indentation diff --git a/Lib/tarfile.py b/Lib/tarfile.py index f817b57ab16..d5d8a469779 100755..100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 #------------------------------------------------------------------- # tarfile.py #------------------------------------------------------------------- diff --git a/Lib/timeit.py b/Lib/timeit.py index 02cfafaf36e..c106e0f6735 100755..100644 --- a/Lib/timeit.py +++ b/Lib/timeit.py @@ -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 diff --git a/Lib/trace.py b/Lib/trace.py index 8550475e3a7..bb3d34fd8d6 100755..100644 --- a/Lib/trace.py +++ b/Lib/trace.py @@ -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. diff --git a/Lib/turtledemo/__main__.py b/Lib/turtledemo/__main__.py index 731f98b02b1..06a64081a89 100755..100644 --- a/Lib/turtledemo/__main__.py +++ b/Lib/turtledemo/__main__.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - """ ---------------------------------------------- turtleDemo - Help diff --git a/Lib/turtledemo/bytedesign.py b/Lib/turtledemo/bytedesign.py index 1b7452b512c..476cdaabfce 100755..100644 --- a/Lib/turtledemo/bytedesign.py +++ b/Lib/turtledemo/bytedesign.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtle-example-suite: tdemo_bytedesign.py diff --git a/Lib/turtledemo/clock.py b/Lib/turtledemo/clock.py index 9f8585bd11e..fd3b3992d46 100755..100644 --- a/Lib/turtledemo/clock.py +++ b/Lib/turtledemo/clock.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 # -*- coding: cp1252 -*- """ turtle-example-suite: diff --git a/Lib/turtledemo/forest.py b/Lib/turtledemo/forest.py index 55b7da947d2..cac55322382 100755..100644 --- a/Lib/turtledemo/forest.py +++ b/Lib/turtledemo/forest.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtlegraphics-example-suite: tdemo_forest.py diff --git a/Lib/turtledemo/fractalcurves.py b/Lib/turtledemo/fractalcurves.py index 54ade96a0ad..fda193e06fe 100755..100644 --- a/Lib/turtledemo/fractalcurves.py +++ b/Lib/turtledemo/fractalcurves.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtle-example-suite: tdemo_fractalCurves.py diff --git a/Lib/turtledemo/lindenmayer.py b/Lib/turtledemo/lindenmayer.py index 3925f25da61..7c7a84796c3 100755..100644 --- a/Lib/turtledemo/lindenmayer.py +++ b/Lib/turtledemo/lindenmayer.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtle-example-suite: xtx_lindenmayer_indian.py diff --git a/Lib/turtledemo/minimal_hanoi.py b/Lib/turtledemo/minimal_hanoi.py index 4a432f2b290..08d8b630fec 100755..100644 --- a/Lib/turtledemo/minimal_hanoi.py +++ b/Lib/turtledemo/minimal_hanoi.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtle-example-suite: tdemo_minimal_hanoi.py diff --git a/Lib/turtledemo/paint.py b/Lib/turtledemo/paint.py index fc6852a2008..6e63d004454 100755..100644 --- a/Lib/turtledemo/paint.py +++ b/Lib/turtledemo/paint.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtle-example-suite: tdemo_paint.py diff --git a/Lib/turtledemo/peace.py b/Lib/turtledemo/peace.py index e2ba9288d9e..fd6abe390ef 100755..100644 --- a/Lib/turtledemo/peace.py +++ b/Lib/turtledemo/peace.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtle-example-suite: tdemo_peace.py diff --git a/Lib/turtledemo/penrose.py b/Lib/turtledemo/penrose.py index 045722a2286..ac12c899d38 100755..100644 --- a/Lib/turtledemo/penrose.py +++ b/Lib/turtledemo/penrose.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ xturtle-example-suite: xtx_kites_and_darts.py diff --git a/Lib/turtledemo/planet_and_moon.py b/Lib/turtledemo/planet_and_moon.py index 021ff99383a..c0e2c5b79e1 100755..100644 --- a/Lib/turtledemo/planet_and_moon.py +++ b/Lib/turtledemo/planet_and_moon.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtle-example-suite: tdemo_planets_and_moon.py diff --git a/Lib/turtledemo/sorting_animate.py b/Lib/turtledemo/sorting_animate.py index d25a0ab6ceb..55735cd7001 100755..100644 --- a/Lib/turtledemo/sorting_animate.py +++ b/Lib/turtledemo/sorting_animate.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ sorting_animation.py diff --git a/Lib/turtledemo/tree.py b/Lib/turtledemo/tree.py index 98a20da7f15..12729e23688 100755..100644 --- a/Lib/turtledemo/tree.py +++ b/Lib/turtledemo/tree.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtle-example-suite: tdemo_tree.py diff --git a/Lib/turtledemo/yinyang.py b/Lib/turtledemo/yinyang.py index 11d1f47cae2..791060d17e6 100755..100644 --- a/Lib/turtledemo/yinyang.py +++ b/Lib/turtledemo/yinyang.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 """ turtle-example-suite: tdemo_yinyang.py diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index b7fbc41853e..6fca257c026 100755..100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -1,4 +1,3 @@ -#! /usr/bin/env python3 """Interfaces for launching and remotely controlling web browsers.""" # Maintained by Georg Brandl. |