2to3: add package host tool
authorKerma Gérald <gandalf@gk2.net>
Sat, 25 Dec 2021 10:46:36 +0000 (11:46 +0100)
committerKerma Gérald <gandalf@gk2.net>
Sat, 15 Jan 2022 19:53:30 +0000 (20:53 +0100)
commit3f88edfa544bf13b1d4437ba9a55e280cfa4ab4b
tree906fe9329f90c03e5047e3d516e5c37a203dddbc
parentbb09bc37b25ef94d06b550924c2fbeacf5863fcc
2to3: add package host tool

2to3 is a Python program that reads Python 2.x source code and applies a
  series of fixers to transform it into valid Python 3.x code. The standard
  library contains a rich set of fixers that will handle almost all code. 2to3
  supporting library lib2to3 is, however, a flexible and generic library, so it
  is possible to write your own fixers for 2to3. lib2to3 could also be adapted
  to custom applications in which Python code needs to be edited automatically.

This tool is necessary for fail2ban package because of issue
  https://github.com/openwrt/packages/issues/17311
  https://github.com/openwrt/packages/pull/17341

Simple 2to3.py script from Debian, thanks to Matthias Klose <doko@ubuntu.com>
From: https://salsa.debian.org/cpython-team/python3-defaults

(cherry picked from commit 2f91e1c9c5876bcdac4630fdc0e417903d8f9eb9)
Co-authored-by: Jeffery To <jeffery.to@gmail.com>
Signed-off-by: Kerma Gérald <gandalf@gk2.net>
lang/python/2to3/Makefile [new file with mode: 0644]
lang/python/2to3/files/2to3.py [new file with mode: 0644]
lang/python/2to3/files/copyright [new file with mode: 0644]