aboutsummaryrefslogtreecommitdiff
path: root/utils/tio
diff options
context:
space:
mode:
authorKerma Gérald <gandalf@gk2.net>2021-12-25 11:46:36 +0100
committerKerma Gérald <gandalf@gk2.net>2022-01-05 15:20:13 +0100
commit2f91e1c9c5876bcdac4630fdc0e417903d8f9eb9 (patch)
treeaab3681207fb5c74ac971316f6d81d4357176d99 /utils/tio
parent01473316a57fd3c883b805be0ec9c4217c1ea25e (diff)
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>
Diffstat (limited to 'utils/tio')
0 files changed, 0 insertions, 0 deletions