Find deprecated tempfile.mktemp() usage

Proprietary

Find usage of tempfile.mktemp() which is deprecated due to security concerns (race condition). Use mkstemp() or NamedTemporaryFile() instead.

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

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