Skip to content

Fix downcaseTokens issue in policytree.py with pyparsing >=2.4.1#252

Merged
jakinyele merged 1 commit intoJHUISI:devfrom
raghavkaul:patch-1
Aug 4, 2020
Merged

Fix downcaseTokens issue in policytree.py with pyparsing >=2.4.1#252
jakinyele merged 1 commit intoJHUISI:devfrom
raghavkaul:patch-1

Conversation

@raghavkaul
Copy link
Copy Markdown

@raghavkaul raghavkaul commented Jul 31, 2020

In Pyparsing 2.4.1, downcaseTokens is moved to pyparsing_common, breaking imports in policytree.py.

An alternative fix is to update policytree.py to use the pyparsing_common.downcaseTokens import, but that might involve a permanent bump to the pyparsing version (which is the correct fix, but less conservative).

fixes #249

In [Pyparsing 2.4.1](https://github.com/pyparsing/pyparsing/releases/tag/pyparsing_2.4.1), `downcaseTokens` is moved to `pyparsing_common`, breaking imports in policytree.py. 

An alternative fix is to update policytree.py to use the `pyparsing_common.downcaseTokens` import, but that might involve a permanent bump to the pyparsing version (which is the correct fix, but less conservative).
@jakinyele jakinyele merged commit 531fcb4 into JHUISI:dev Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Charm based on pypasering v3.0.0a1 leads to an error

2 participants