Find removed PurePath.is_reserved()

Proprietary

pathlib.PurePath.is_reserved() was removed in Python 3.15. Use os.path.isreserved(), which is only available on Windows. Only fires where the receiver's type resolves to a pathlib path.

org.openrewrite.python.migrate.FindPathlibIsReserved
mod run . --recipe=org.openrewrite.python.migrate.FindPathlibIsReserved

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.