]> code.ossystems Code Review - openembedded-core.git/commit
oe/license: implement ast.NodeVisitor.visit_Constant
authorRoss Burton <ross@burtonini.com>
Wed, 13 Oct 2021 15:10:23 +0000 (16:10 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Oct 2021 21:31:56 +0000 (22:31 +0100)
commitabc93390a3f19bc4cc159c5690a478b9e2270906
treef67a8487490ac4688ba4f5d9ef93b011901dbe0e
parent1f0bec0421617e8aa9645c385195a755f0d44e75
oe/license: 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: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/license.py