Find deprecated shutil.rmtree(onerror=...) parameter

Proprietary

The onerror parameter of shutil.rmtree() was deprecated in Python 3.12 in favor of onexc. The onexc callback receives the exception object directly rather than an exc_info tuple.

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

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