2to3: add package host tool 17429/head
authorKerma Gérald <gandalf@gk2.net>
Sat, 25 Dec 2021 10:46:36 +0000 (11:46 +0100)
committerKerma Gérald <gandalf@gk2.net>
Wed, 5 Jan 2022 14:20:13 +0000 (15:20 +0100)
commit2f91e1c9c5876bcdac4630fdc0e417903d8f9eb9
treeaab3681207fb5c74ac971316f6d81d4357176d99
parent01473316a57fd3c883b805be0ec9c4217c1ea25e
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

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]