Replace threading.activeCount() with threading.active_count()

Proprietary

Replace threading.activeCount() with threading.active_count(). The camelCase version was deprecated in Python 3.10.

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

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

Recipe list

It runs these recipes, in this order.

  1. Change import