Skip to content

stdlib/fnmatch: Fix compatibility with ure -> re. #698

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

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

andrewleech
Copy link
Contributor

@andrewleech andrewleech commented Jul 6, 2023

With the recent micropython change to remove the u prefix by default on builtins (micropython/micropython#11740) the format checker in fnmatch which was detecting ure no longer works.

The MR updates the module to filter the regex automatically as needed.

@jimmo
Copy link
Member

jimmo commented Jul 7, 2023

Thanks, that's a much better solution than what was there before.

With the recent MicroPython change to remove the u prefix by default on
builtins (micropython/micropython#11740) the format checker in fnmatch
which was detecting ure no longer works.

This commit updates the module to filter the regex automatically as needed.

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
@dpgeorge dpgeorge merged commit e45a7f6 into micropython:master Jul 21, 2023
@andrewleech andrewleech deleted the fnmatch_ure_re branch September 6, 2024 03:39
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.

4 participants