Skip to content

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

Merged
dpgeorge merged 1 commit into
micropython:masterfrom
andrewleech:fnmatch_ure_re
Jul 21, 2023
Merged

stdlib/fnmatch: Fix compatibility with ure -> re.#698
dpgeorge merged 1 commit into
micropython:masterfrom
andrewleech:fnmatch_ure_re

Conversation

@andrewleech
Copy link
Copy Markdown
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
Copy Markdown
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 <[email protected]>
@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