>>> from license_expression import Licensing
>>> Licensing().parse('mit AND (mit OR bsd-new)').simplify()
LicenseSymbol('mit', is_exception=False)
From the above output, one can see that mit AND (mit OR bsd-new) simplifies down to just mit. If this were just boolean logical elements, this result would be correct. However, when its a license-expression, we are loosing data (this case, the bsd-new key).
In a perfect world, I would like the result to be simply reduce to mit OR bsd-new.
From the above output, one can see that
mit AND (mit OR bsd-new)simplifies down to justmit. If this were just boolean logical elements, this result would be correct. However, when its a license-expression, we are loosing data (this case, thebsd-newkey).In a perfect world, I would like the result to be simply reduce to
mit OR bsd-new.