File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -854,7 +854,7 @@ def normalise_compound_license_expr(s: str) -> str:
854
854
raise ConfigError (invalid_msg .format (s = s , reason = reason ))
855
855
elif part == '(' :
856
856
if parts and parts [- 1 ] not in {' AND ' , ' OR ' , '(' }:
857
- reason = "'(' must follow a license expression operator or another '('"
857
+ reason = f "'(' must follow either AND, OR, or '('"
858
858
raise ConfigError (invalid_msg .format (s = s , reason = reason ))
859
859
stack += 1
860
860
parts .append (part )
@@ -869,7 +869,7 @@ def normalise_compound_license_expr(s: str) -> str:
869
869
parts .append (part )
870
870
else :
871
871
if parts and parts [- 1 ] not in {' AND ' , ' OR ' , '(' }:
872
- reason = "a license ID must follow a license expression operator or '('"
872
+ reason = f "a license ID must follow either AND, OR, or '('"
873
873
raise ConfigError (invalid_msg .format (s = s , reason = reason ))
874
874
simple_expr = normalise_simple_license_expr (part )
875
875
parts .append (simple_expr )
You can’t perform that action at this time.
0 commit comments