Replace ConfigParser.readfp() with read_file()
ProprietaryThe 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. ReplaceConfigparserReadfpmod run . --recipe= org. openrewrite. python. migrate. ReplaceConfigparserReadfpInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.