◐ Shell
clean mode source ↗

GH-72904: Simplify implementation of `fnmatch.translate()` by barneygale · Pull Request #109879 · python/cpython

Use `re.Scanner` to scan shell-style patterns, rather than parsing them
by hand in a fat loop. This makes the code slower (!) but more obvious, and
lays some groundwork for a future `glob.translate()` function.

@bedevere-app Bot mentioned this pull request

Sep 26, 2023

@barneygale