]> code.ossystems Code Review - openembedded-core.git/commit
license.bbclass: implement ast.NodeVisitor.visit_Constant
authorRoss Burton <ross@burtonini.com>
Fri, 10 Dec 2021 11:08:14 +0000 (11:08 +0000)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 13 Dec 2021 04:19:03 +0000 (12:19 +0800)
commit067fbe5e12a81225cf3ff436837af6a6d23040a6
tree9f3f83a168c8564ade134bcf1a35a67ae5179751
parentc96241ac8e18f4ae87ec05b722a0bbfb017df578
license.bbclass: implement ast.NodeVisitor.visit_Constant

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: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/license.bbclass