mirror of https://github.com/python/cpython
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:
parent
659cb7e6b8
commit
c8b45a385a
|
@ -1,5 +1,3 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
|
|
||||||
"""Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings"""
|
"""Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings"""
|
||||||
|
|
||||||
# Modified 04-Oct-1995 by Jack Jansen to use binascii module
|
# Modified 04-Oct-1995 by Jack Jansen to use binascii module
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
|
|
||||||
"""Python interface for the 'lsprof' profiler.
|
"""Python interface for the 'lsprof' profiler.
|
||||||
Compatible with the 'profile' module.
|
Compatible with the 'profile' module.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The Python Debugger Pdb
|
The Python Debugger Pdb
|
||||||
=======================
|
=======================
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
""" This module tries to retrieve as much platform-identifying data as
|
""" This module tries to retrieve as much platform-identifying data as
|
||||||
possible. It makes this information available via function APIs.
|
possible. It makes this information available via function APIs.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
#
|
#
|
||||||
# Class for profiling python code. rev 1.0 6/2/94
|
# Class for profiling python code. rev 1.0 6/2/94
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
"""Generate Python documentation in HTML or text for interactive use.
|
"""Generate Python documentation in HTML or text for interactive use.
|
||||||
|
|
||||||
At the Python interactive prompt, calling help(thing) on a Python object
|
At the Python interactive prompt, calling help(thing) on a Python object
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
|
|
||||||
"""Conversions to/from quoted-printable transport encoding as per RFC 1521."""
|
"""Conversions to/from quoted-printable transport encoding as per RFC 1521."""
|
||||||
|
|
||||||
# (Dec 1991 version).
|
# (Dec 1991 version).
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
|
|
||||||
'''SMTP/ESMTP client class.
|
'''SMTP/ESMTP client class.
|
||||||
|
|
||||||
This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
|
This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
|
|
||||||
"""The Tab Nanny despises ambiguous indentation. She knows no mercy.
|
"""The Tab Nanny despises ambiguous indentation. She knows no mercy.
|
||||||
|
|
||||||
tabnanny -- Detection of ambiguous indentation
|
tabnanny -- Detection of ambiguous indentation
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
# tarfile.py
|
# tarfile.py
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
|
|
||||||
"""Tool for measuring execution time of small code snippets.
|
"""Tool for measuring execution time of small code snippets.
|
||||||
|
|
||||||
This module avoids a number of common traps for measuring execution
|
This module avoids a number of common traps for measuring execution
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
# portions copyright 2001, Autonomous Zones Industries, Inc., all rights...
|
# portions copyright 2001, Autonomous Zones Industries, Inc., all rights...
|
||||||
# err... reserved and offered to the public under the terms of the
|
# err... reserved and offered to the public under the terms of the
|
||||||
# Python 2.2 license.
|
# Python 2.2 license.
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
turtleDemo - Help
|
turtleDemo - Help
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
tdemo_bytedesign.py
|
tdemo_bytedesign.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
# -*- coding: cp1252 -*-
|
# -*- coding: cp1252 -*-
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtlegraphics-example-suite:
|
""" turtlegraphics-example-suite:
|
||||||
|
|
||||||
tdemo_forest.py
|
tdemo_forest.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
tdemo_fractalCurves.py
|
tdemo_fractalCurves.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
xtx_lindenmayer_indian.py
|
xtx_lindenmayer_indian.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
tdemo_minimal_hanoi.py
|
tdemo_minimal_hanoi.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
tdemo_paint.py
|
tdemo_paint.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
tdemo_peace.py
|
tdemo_peace.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" xturtle-example-suite:
|
""" xturtle-example-suite:
|
||||||
|
|
||||||
xtx_kites_and_darts.py
|
xtx_kites_and_darts.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
tdemo_planets_and_moon.py
|
tdemo_planets_and_moon.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
sorting_animation.py
|
sorting_animation.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
tdemo_tree.py
|
tdemo_tree.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
""" turtle-example-suite:
|
""" turtle-example-suite:
|
||||||
|
|
||||||
tdemo_yinyang.py
|
tdemo_yinyang.py
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#! /usr/bin/env python3
|
|
||||||
"""Interfaces for launching and remotely controlling web browsers."""
|
"""Interfaces for launching and remotely controlling web browsers."""
|
||||||
# Maintained by Georg Brandl.
|
# Maintained by Georg Brandl.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Removed executable bits and shebang from stdlib modules.
|
Loading…
Reference in New Issue