]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
license.py: avoid deprecated ast.Str
authorMartin Jansa <martin.jansa@gmail.com>
Tue, 9 Sep 2025 17:17:33 +0000 (19:17 +0200)
committerSteve Sakoman <steve@sakoman.com>
Wed, 17 Sep 2025 16:32:52 +0000 (09:32 -0700)
commitdf9898f13c261eeac2cc343569c843bc7dcaf163
tree28f3069c77ed07a9dbb87e1a7ef2fbffd13329a3
parent58509b54a464cd5b692ad4ef8dd333eb9c14abfa
license.py: avoid deprecated ast.Str

* it's deprecated since python-3.12 and removed in 3.14 causing:

openembedded-core/meta/lib/oe/license.py', lineno: 176, function: visit
     0172:
     0173:        LicenseVisitor.__init__(self)
     0174:
     0175:    def visit(self, node):
 *** 0176:        if isinstance(node, ast.Str):
     0177:            lic = node.s
     0178:
     0179:            if license_ok(self._canonical_license(self._d, lic),
     0180:                    self._dont_want_licenses) == True:
Exception: AttributeError: module 'ast' has no attribute 'Str'

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/license.py