summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2021-03-09 00:45:46 +0300
committerJason M. Bills <jason.m.bills@linux.intel.com>2021-03-09 00:45:46 +0300
commit930df2e58b9725756edbccf99fd4979026fc28fd (patch)
tree8c5fa9f20219e9bc4580bb18e03b8dd8043a9a4f /meta-openembedded/meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch
parent7c5f8839ec3d71a2170b8f3514a16a67c69d1c7c (diff)
parent377d8f40e88eeb9ccb1321590a3af3c2caa94dda (diff)
downloadopenbmc-930df2e58b9725756edbccf99fd4979026fc28fd.tar.xz
Merge tag '0.35' of ssh://git-amr-1.devtools.intel.com:29418/openbmc-openbmc into update
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch')
-rw-r--r--meta-openembedded/meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch b/meta-openembedded/meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch
new file mode 100644
index 000000000..009951864
--- /dev/null
+++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch
@@ -0,0 +1,36 @@
+From 1a477968593a14ee9c8597c1ed4e8b61a7731e15 Mon Sep 17 00:00:00 2001
+From: Mingli Yu <mingli.yu@windriver.com>
+Date: Wed, 23 Dec 2020 02:23:13 +0000
+Subject: [PATCH] rtrip.py: convert to python3
+
+As Python 2 reached end of life (EOL), so convert rtrip.py to python3.
+
+Upstream-Status: Submitted [https://github.com/berkerpeksag/astor/pull/192]
+
+Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
+---
+ astor/rtrip.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/astor/rtrip.py b/astor/rtrip.py
+index 8b108e7..e2e30a6 100755
+--- a/astor/rtrip.py
++++ b/astor/rtrip.py
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#! /usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """
+ Part of the astor library for Python AST manipulation.
+@@ -160,7 +160,7 @@ def usage(msg):
+
+ Usage:
+
+- python -m astor.rtrip [readonly] [<source>]
++ python3 -m astor.rtrip [readonly] [<source>]
+
+
+ This utility tests round-tripping of Python source to AST
+--
+2.26.2
+