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.
This commit is contained in:
Jason R. Coombs 2024-05-29 12:43:19 -04:00 committed by GitHub
parent 659cb7e6b8
commit c8b45a385a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
28 changed files with 1 additions and 37 deletions

2
Lib/base64.py Executable file → Normal file
View File

@ -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

2
Lib/cProfile.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#! /usr/bin/env python3
"""Python interface for the 'lsprof' profiler.
Compatible with the 'profile' module.
"""

2
Lib/pdb.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#! /usr/bin/env python3
"""
The Python Debugger Pdb
=======================

2
Lib/platform.py Executable file → Normal file
View File

@ -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.

1
Lib/profile.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#! /usr/bin/env python3
#
# Class for profiling python code. rev 1.0 6/2/94
#

1
Lib/pydoc.py Executable file → Normal file
View File

@ -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

2
Lib/quopri.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#! /usr/bin/env python3
"""Conversions to/from quoted-printable transport encoding as per RFC 1521."""
# (Dec 1991 version).

2
Lib/smtplib.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#! /usr/bin/env python3
'''SMTP/ESMTP client class.
This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP

2
Lib/tabnanny.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#! /usr/bin/env python3
"""The Tab Nanny despises ambiguous indentation. She knows no mercy.
tabnanny -- Detection of ambiguous indentation

1
Lib/tarfile.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
#-------------------------------------------------------------------
# tarfile.py
#-------------------------------------------------------------------

2
Lib/timeit.py Executable file → Normal file
View File

@ -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

2
Lib/trace.py Executable file → Normal file
View File

@ -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.

2
Lib/turtledemo/__main__.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3
"""
----------------------------------------------
turtleDemo - Help

1
Lib/turtledemo/bytedesign.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_bytedesign.py

1
Lib/turtledemo/clock.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
# -*- coding: cp1252 -*-
""" turtle-example-suite:

1
Lib/turtledemo/forest.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtlegraphics-example-suite:
tdemo_forest.py

1
Lib/turtledemo/fractalcurves.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_fractalCurves.py

1
Lib/turtledemo/lindenmayer.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtle-example-suite:
xtx_lindenmayer_indian.py

1
Lib/turtledemo/minimal_hanoi.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_minimal_hanoi.py

1
Lib/turtledemo/paint.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_paint.py

1
Lib/turtledemo/peace.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_peace.py

1
Lib/turtledemo/penrose.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" xturtle-example-suite:
xtx_kites_and_darts.py

1
Lib/turtledemo/planet_and_moon.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_planets_and_moon.py

1
Lib/turtledemo/sorting_animate.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
"""
sorting_animation.py

1
Lib/turtledemo/tree.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_tree.py

1
Lib/turtledemo/yinyang.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python3
""" turtle-example-suite:
tdemo_yinyang.py

1
Lib/webbrowser.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#! /usr/bin/env python3
"""Interfaces for launching and remotely controlling web browsers."""
# Maintained by Georg Brandl.

View File

@ -0,0 +1 @@
Removed executable bits and shebang from stdlib modules.