Replace Thread.isDaemon() with Thread.daemon

Proprietary

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

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

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