Replace ConfigParser.readfp() with read_file()

Proprietary

The ConfigParser.readfp() method was deprecated in Python 3.2 and removed in Python 3.13. Replace with read_file(). Only fires where the receiver's type resolves to configparser.RawConfigParser or a subclass.

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

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