From e7be3a18b97f81b39954ca928cfc6bd0b401f400 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 12 Sep 2021 15:06:18 +0300 Subject: configparser: replace deprecated readfp with read_file --- setuptools/command/easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 43bd2952..5e0f97cf 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1508,7 +1508,7 @@ def extract_wininst_cfg(dist_filename): # Now the config is in bytes, but for RawConfigParser, it should # be text, so decode it. config = config.decode(sys.getfilesystemencoding()) - cfg.readfp(io.StringIO(config)) + cfg.read_file(io.StringIO(config)) except configparser.Error: return None if not cfg.has_section('metadata') or not cfg.has_section('Setup'): -- cgit v1.2.1