summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2021-09-12 15:06:18 +0300
committerHugo van Kemenade <hugovk@users.noreply.github.com>2021-09-12 15:06:18 +0300
commite7be3a18b97f81b39954ca928cfc6bd0b401f400 (patch)
tree76ec20f72b1d2fe3316a6ee19c9cef8f00f1ba89 /setuptools/command
parentfdb818def5e262eee8edc4cc7ba1b79461096bfc (diff)
downloadpython-setuptools-git-e7be3a18b97f81b39954ca928cfc6bd0b401f400.tar.gz
configparser: replace deprecated readfp with read_file
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/easy_install.py2
1 files changed, 1 insertions, 1 deletions
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'):