]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
license.py: avoid deprecated ast.Str
authorMartin Jansa <martin.jansa@gmail.com>
Tue, 9 Sep 2025 17:17:14 +0000 (19:17 +0200)
committerSteve Sakoman <steve@sakoman.com>
Fri, 12 Sep 2025 16:53:54 +0000 (09:53 -0700)
commit73c0dcd28f843b61edaa17fbc4037ef974f52adf
tree161ff3ce8891cf0089575c27e018d4cbad4a6a14
parent32486bb4c5401b0a59470a37505f60f71da6c2c7
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