Merge branch 'blender-v4.3-release'

This commit is contained in:
Campbell Barton
2024-10-23 12:30:01 +11:00

View File

@@ -242,7 +242,7 @@ class License:
license_raw = "\n".join(line.rstrip() for line in license_raw.split("\n"))
# Debug option commented out.
# This is useful if you want a human-inspectionable document without the licenses.
# This is useful if you want a document for human inspection without the licenses.
# license_raw = "# Debug"
summary_prefix = f"{int_to_superscript(index)} " if index else ""
@@ -527,10 +527,10 @@ def extract_licenses(text: str) -> set[str]:
For example, for the input:
* <SPDX:GPL-3.0-or-later|link>
* <Arev-Fonts>
* <Example-Fonts>
The output would be:
{"SPDX:GPL-3.0-or-later", "Arev-Fonts"}
{"SPDX:GPL-3.0-or-later", "Example-Fonts"}
"""
# Remove multi-line comments (<!-- ... -->).
text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL)