Skip to contentSkip to conversation

license.py: Correct a comment

PATCH New Peter Kjellerstedt 1 participant 1 message Feb 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 license.py: Correct a comment

---
 meta/lib/oe/license.py | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
meta/lib/oe/license.py +7 -10
index 79800c2b8f..8955cbdeb2 100644
@@ -100,16 +100,13 @@ def flattened_licenses(licensestr, choose_licenses):
     return flatten.licenses
 
 def is_included(licensestr, include_licenses=None, exclude_licenses=None):
-    """Given a license a list of list to include and a list of
-        licenses to exclude, determine if the license string
-        matches the an include list and does not match the 
-        exclude list.
-
-        Returns a tuple holding the boolean state and a list of
-        the applicable licenses that were excluded if state is
-        False, or the licenses that were included if the state
-        is True.
-    """
+    """Given a license string, a list of licenses to include and a list of
+    licenses to exclude, determine if the license string matches the include
+    list and does not match the exclude list.
+
+    Returns a tuple holding the boolean state and a list of the applicable
+    licenses that were excluded if state is False, or the licenses that were
+    included if the state is True."""
 
     def include_license(license):
         return any(fnmatch(license, pattern) for pattern in include_licenses)