aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--license.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/license.py b/license.py
index e33f06e..91392e6 100644
--- a/license.py
+++ b/license.py
@@ -87,11 +87,15 @@ def parse_licenses(s):
>>> print parse_licenses("X, and Y or Z")
X and (Y or Z)
+
+ >>> print parse_licenses("X | Y")
+ X or Y
"""
splits = (
(', and ', AllLicenses),
(' or ', AnyLicense),
+ (' | ', AnyLicense),
(' and ', AllLicenses))
for (split_str, cls) in splits: