Skip to content

Switch a parsing behavior completely when switching a parser #161

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Apr 14, 2025

Currently, some methods' behavior(e.g. URI.parse) don't change when switching a parser. This is because some methods use DEFAULT_PARSER, but parser= doesn't change DEFAULT_PARSER.

This PR introduces a constant to keep a parser's instance and change it when switching a parser. Also, change to use it in methods.

Currently, some methods' behavior(e.g. `URI.parse`) don't change
when switching a parser. This is because some methods use
`DEFAULT_PARSER`, but `parser=` doesn't change `DEFAULT_PARSER`.

This PR introduces a constant to keep a parser's instance and
change it when switching a parser. Also, change to use it in
methods.
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.

1 participant