From 191add187cd72a30def1bb701058538b2a913e41 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Wed, 23 Dec 2020 10:47:25 +0800 Subject: python3-astor: switch to python3 As python2 reached end of life(EOL), so convert rtrip.py to python3. Signed-off-by: Mingli Yu Acked-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../0001-rtrip.py-convert-to-python3.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch (limited to 'meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch') diff --git a/meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch b/meta-python/recipes-devtools/python/python3-astor/0001-rtrip.py-convert-to-python3.patch new file mode 100644 index 0000000000..009951864a --- /dev/null +++ b/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 +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 +--- + 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] [] ++ python3 -m astor.rtrip [readonly] [] + + + This utility tests round-tripping of Python source to AST +-- +2.26.2 + -- cgit v1.2.3-54-g00ecf