Skip to content

Commit 20e1729

Browse files
committed
Handle mixed-case licence operators
1 parent 9bd1477 commit 20e1729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flit_core/flit_core/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ def normalise_compound_license_expr(s: str) -> str:
850850
parts.append(f' {part} ')
851851
elif part.lower() in {'and', 'or', 'with'}:
852852
# provide a sensible error message for non-uppercase operators
853-
reason = f"operators must be uppercase, not '{s}'"
853+
reason = f"operators must be uppercase, not '{part}'"
854854
raise ConfigError(invalid_msg.format(s=s, reason=reason))
855855
elif part == '(':
856856
if parts and parts[-1] not in {' AND ', ' OR ', '('}:

0 commit comments

Comments
 (0)