]> code.ossystems Code Review - openembedded-core.git/commit
oe/license: implement ast.NodeVisitor.visit_Constant
authorRoss Burton <ross@burtonini.com>
Fri, 10 Dec 2021 11:08:13 +0000 (11:08 +0000)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 13 Dec 2021 04:19:03 +0000 (12:19 +0800)
commitc96241ac8e18f4ae87ec05b722a0bbfb017df578
treeb10b45da2010149d62f121fb9cad1fc2820ad37d
parent82f62387210757f66404f5d9c3f47461664124f5
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: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oe/license.py