Skip to contentSkip to conversation

python3: change two shebangs to python3

PATCH New Joe Slater 1 participant 1 message Feb 27, 2020

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 python3: change two shebangs to python3

cgi.py and rot_13.py have outdated shebangs.

---
 .../recipes-devtools/python/python3/shebang3.patch | 22 ++++++++++++++++++++++
 meta/recipes-devtools/python/python3_3.8.1.bb      |  2 ++
 2 files changed, 24 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3/shebang3.patch
meta/recipes-devtools/python/python3/shebang3.patch new file +22 -0
new file mode 100644
index 0000000..c4fde05
@@ -0,0 +1,22 @@
+python3: change two shebangs to python3
+
+Upstream-Status: Inappropriate [distribution]
+
+Signed-off-by: Joe Slater <[email protected]>
+
+--- a/Lib/cgi.py
++++ b/Lib/cgi.py
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#! /usr/bin/env python3
+ 
+ """Support module for CGI (Common Gateway Interface) scripts.
+ 
+--- a/Lib/encodings/rot_13.py
++++ b/Lib/encodings/rot_13.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ """ Python Character Mapping Codec for ROT13.
+ 
+ This codec de/encodes from str to str.
meta/recipes-devtools/python/python3_3.8.1.bb +2 -0
index 7796852..c1983d8 100644
@@ -32,7 +32,9 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
            file://0001-configure.ac-fix-LIBPL.patch \
            file://0001-python3-Do-not-hardcode-lib-for-distutils.patch \
            file://0020-configure.ac-setup.py-do-not-add-a-curses-include-pa.patch \
+           file://shebang3.patch \
            "
+      
 
 SRC_URI_append_class-native = " \
            file://0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch \
Signature · 1 line
2.7.4