Replace glob.glob1() with glob.glob(root_dir=...)
ProprietaryThe undocumented glob.glob1() was removed in Python 3.15. Replace glob1(dirname, pattern) with glob.glob(pattern, root_dir=dirname), which returns the same names. Only calls whose pattern is a string literal with a wildcard and no path separator are rewritten; calls passing keyword arguments or any other pattern are marked for review.
org. openrewrite. python. migrate. ReplaceGlobGlob1mod run . --recipe= org. openrewrite. python. migrate. ReplaceGlobGlob1Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.