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

Improve Python version handling #4726

Merged
merged 1 commit into from
Nov 9, 2024
Merged

Improve Python version handling #4726

merged 1 commit into from
Nov 9, 2024

Conversation

cjwatson
Copy link
Contributor

@cjwatson cjwatson commented Nov 6, 2024

Checking just the second element of a version tuple is never good style, and it makes it less clear what actual versions of Python are in question.

runtime/Python3/src/antlr4/xpath/XPathLexer.py Outdated Show resolved Hide resolved
runtime/Python3/tests/expr/ExprLexer.py Outdated Show resolved Hide resolved
runtime/Python3/tests/expr/ExprParser.py Outdated Show resolved Hide resolved
@ericvergnaud
Copy link
Contributor

@cjwatson thanks for this. Just rollback the changes on the generated files and we'll be good to go.

Checking just the second element of a version tuple is never good style,
and it makes it less clear what actual versions of Python are in
question.

Signed-off-by: Colin Watson <[email protected]>
@cjwatson
Copy link
Contributor Author

cjwatson commented Nov 6, 2024

OK, done.

@ericvergnaud
Copy link
Contributor

@cjwatson Thanks!
@parrt blessed

@parrt parrt merged commit 75befab into antlr:dev Nov 9, 2024
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants