From bc15837160021acd04d9c253567e0163761640dc Mon Sep 17 00:00:00 2001 From: Dafydd Harries Date: Tue, 19 Mar 2013 13:03:57 -0400 Subject: parse | in license descriptions --- license.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- cgit v1.2.3