8000 `AND` statements not flattened in dedup() · Issue #67 · aboutcode-org/license-expression · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
AND statements not flattened in dedup() #67
Open
@AyanSinhaMahapatra

Description

@AyanSinhaMahapatra

For example licensing.dedup() should have simplified the following expression:

(gpl AND mit) AND mit AND (gpl OR mit) -> gpl AND mit AND (gpl OR mit)

But currently it does not flatten AND statements in parenthesis, but it should.

This can be done either by:

  1. licensing.dedup(str(expression.flatten())) (?)
  2. By replacing OR statements by one symbol, simplifying and then getting the OR statements back by using substitution tables.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0