0001-rtrip.py-convert-to-python3.patch 999 B

123456789101112131415161718192021222324252627282930313233343536
  1. From 1a477968593a14ee9c8597c1ed4e8b61a7731e15 Mon Sep 17 00:00:00 2001
  2. From: Mingli Yu <mingli.yu@windriver.com>
  3. Date: Wed, 23 Dec 2020 02:23:13 +0000
  4. Subject: [PATCH] rtrip.py: convert to python3
  5. As Python 2 reached end of life (EOL), so convert rtrip.py to python3.
  6. Upstream-Status: Submitted [https://github.com/berkerpeksag/astor/pull/192]
  7. Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
  8. ---
  9. astor/rtrip.py | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/astor/rtrip.py b/astor/rtrip.py
  12. index 8b108e7..e2e30a6 100755
  13. --- a/astor/rtrip.py
  14. +++ b/astor/rtrip.py
  15. @@ -1,4 +1,4 @@
  16. -#! /usr/bin/env python
  17. +#! /usr/bin/env python3
  18. # -*- coding: utf-8 -*-
  19. """
  20. Part of the astor library for Python AST manipulation.
  21. @@ -160,7 +160,7 @@ def usage(msg):
  22. Usage:
  23. - python -m astor.rtrip [readonly] [<source>]
  24. + python3 -m astor.rtrip [readonly] [<source>]
  25. This utility tests round-tripping of Python source to AST
  26. --
  27. 2.26.2