From b78f52617bbc7e84600525f0d5fb1665144c9407 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 6 May 2024 17:39:26 -0400 Subject: [PATCH] gh-118673: Remove shebang and executable bits from stdlib modules. --- Lib/base64.py | 0 Lib/cProfile.py | 2 -- Lib/pdb.py | 2 -- Lib/platform.py | 2 -- Lib/profile.py | 0 Lib/pydoc.py | 1 - Lib/quopri.py | 2 -- Lib/smtplib.py | 2 -- Lib/tabnanny.py | 2 -- Lib/tarfile.py | 1 - Lib/timeit.py | 2 -- Lib/trace.py | 2 -- Lib/webbrowser.py | 1 - .../next/Library/2024-05-06-17-39-52.gh-issue-118673.sTXBit.rst | 1 + 14 files changed, 1 insertion(+), 19 deletions(-) mode change 100755 => 100644 Lib/base64.py mode change 100755 => 100644 Lib/cProfile.py mode change 100755 => 100644 Lib/pdb.py mode change 100755 => 100644 Lib/platform.py mode change 100755 => 100644 Lib/profile.py mode change 100755 => 100644 Lib/pydoc.py mode change 100755 => 100644 Lib/quopri.py mode change 100755 => 100644 Lib/smtplib.py mode change 100755 => 100644 Lib/tabnanny.py mode change 100755 => 100644 Lib/tarfile.py mode change 100755 => 100644 Lib/timeit.py mode change 100755 => 100644 Lib/trace.py mode change 100755 => 100644 Lib/webbrowser.py create mode 100644 Misc/NEWS.d/next/Library/2024-05-06-17-39-52.gh-issue-118673.sTXBit.rst diff --git a/Lib/base64.py b/Lib/base64.py old mode 100755 new mode 100644 diff --git a/Lib/cProfile.py b/Lib/cProfile.py old mode 100755 new mode 100644 index 9c132372dc4ee04..e7c868b8d555438 --- 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 old mode 100755 new mode 100644 index e507a9bb896611b..625adb00c9b1453 --- 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 old mode 100755 new mode 100644 index ebaba37563120e2..3816b71119b7eee --- 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 old mode 100755 new mode 100644 diff --git a/Lib/pydoc.py b/Lib/pydoc.py old mode 100755 new mode 100644 index 55ccf2152c26cb1..5d854c50f40d6e6 --- 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 old mode 100755 new mode 100644 index f36cf7b3951cda7..129fd2f5c7c28a8 --- 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 old mode 100755 new mode 100644 index b3cc68a789a7d8e..a9ab7d0d515b017 --- 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 old mode 100755 new mode 100644 index e2ac6837f157d53..7e56d4a48d1d00b --- 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 old mode 100755 new mode 100644 index 5fc6183ffcf93c3..bd33368158884b6 --- 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 old mode 100755 new mode 100644 index 02cfafaf36e5d13..c106e0f67356da1 --- 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 old mode 100755 new mode 100644 index 7886959fa64f684..0dc2a454f1ff544 --- 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/webbrowser.py b/Lib/webbrowser.py old mode 100755 new mode 100644 index b7fbc41853ea65b..6fca257c02664f5 --- 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. 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 index 000000000000000..f0a87d2a91df3c2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-05-06-17-39-52.gh-issue-118673.sTXBit.rst @@ -0,0 +1 @@ +Removed executable bits and shebang from stdlib modules.