Replace Thread.getName() with Thread.name

Proprietary

Replace getName() method calls with the name property. Deprecated in Python 3.10. Only fires where the receiver's type resolves to threading.Thread or a subclass.

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

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