Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update parsimonious to 0.10.0 #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

benjaminbellamy
Copy link

hypertag 1.2.0 does not work anymore with recent Python versions.

getargspec from parsimonious 0.8.1 is now raising errors:

ImportError: cannot import name 'getargspec' from 'inspect'

(It should be replaced with getfullargspec)

Upgrading to parsimonious 0.10.0 fixes it.

@@ -13,8 +13,7 @@
XML_StartChar = r"_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\U00010000-\U000EFFFF"

# human-readable: XML_StartChar | [0-9.\u00B7-] | [\u0300-\u036F] | [\u203F-\u2040]
XML_Char = XML_StartChar + r"0-9\.\-" + r"\u00B7\u0300-\u036F\u203F-\u2040" + ":"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks unneeded (incorrect) to me, as this regex is in plain Python code outside the grammar, and Py 3.5 and 3.12 should interpret this in the same way.

@mwojnars
Copy link
Owner

mwojnars commented Jan 3, 2025

Thanks for this PR and sorry for the delay, I noticed it only now :(
Did you run tests to see if the grammar changes are fine?

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.

2 participants