We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7fe241 commit 188cc60Copy full SHA for 188cc60
mx.graalpython/verify_patches.py
@@ -85,7 +85,7 @@ def validate_metadata(patches_dir):
85
for part in re.split(f'AND|OR', license_id):
86
part = part.strip()
87
if ' WITH ' in part:
88
- part, exception = re.split(r'\s+WITH\s+', part, 1)
+ part, exception = re.split(r'\s+WITH\s+', part, maxsplit=1)
89
assert exception in ALLOWED_WITH_CLAUSES, \
90
f"License WITH clause {exception} not in allowed list of clauses: {', '.join(ALLOWED_WITH_CLAUSES)}"
91
assert part in ALLOWED_LICENSES, \
0 commit comments