mirror of
https://git.yoctoproject.org/poky
synced 2026-03-16 04:09:39 +01:00
license.py: drop visit_Str
In https://git.openembedded.org/openembedded-core/commit/?h=kirkstone&id=abc93390a3f19bc4cc159c5690a478b9e2270906 visit_Constant was added for compatibility with Python 3.8 and newer, but visit_Str was kept, because at that time bitbake did require Python 3.6. Now latest bitbake requires 3.9 and even version 2.4 used in mickledore builds requires 3.8 since: https://git.openembedded.org/bitbake/commit/?h=2.4&id=744310f360d2288ac2ef07745abc86852126b5b9 so we can safely remove these. (From OE-Core rev: 6d3da37adbcaf5a7a3dade08f9d052571b195249) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b0fa96930e
commit
8ebdd79442
@@ -84,9 +84,6 @@ class FlattenVisitor(LicenseVisitor):
|
||||
self.licenses = []
|
||||
LicenseVisitor.__init__(self)
|
||||
|
||||
def visit_Str(self, node):
|
||||
self.licenses.append(node.s)
|
||||
|
||||
def visit_Constant(self, node):
|
||||
self.licenses.append(node.value)
|
||||
|
||||
@@ -240,9 +237,6 @@ class ListVisitor(LicenseVisitor):
|
||||
def __init__(self):
|
||||
self.licenses = set()
|
||||
|
||||
def visit_Str(self, node):
|
||||
self.licenses.add(node.s)
|
||||
|
||||
def visit_Constant(self, node):
|
||||
self.licenses.add(node.value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user