aboutsummaryrefslogtreecommitdiffstats
path: root/lib/codegen.py
AgeCommit message (Collapse)Author
2023-11-14codegen: cleanup deprecated AST usagesChris Laplante
This code is just completely dead as of Python 3.8, like the comment says. Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
2021-10-14codegen: implement ast.NodeVisitor.visit_ConstantRoss Burton
Since Python 3.8 visit_Num(), visit_Str() and so on are all deprecated and replaced with visit_Constant. We can't yet remove the deprecated functions until we require 3.8, but we can implement visit_Constant to silence the deprecation warnings. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01bitbake: Convert to python 3Richard Purdie
Various misc changes to convert bitbake to python3 which don't warrant separation into separate commits. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-08-02Add pysh, ply, and codegen to lib/ to prepare for future workChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>