diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-12 11:59:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-12 11:59:28 -0400 |
| commit | ead5c411446aca9eb1620a852750629316dc951e (patch) | |
| tree | d077dd80f07f55c4bac1d8f90c0fb66fffb7ea27 /setuptools/command | |
| parent | c9e9904dc3f83364450d0cadd5d3dd9996434c0c (diff) | |
| parent | e7be3a18b97f81b39954ca928cfc6bd0b401f400 (diff) | |
| download | python-setuptools-git-ead5c411446aca9eb1620a852750629316dc951e.tar.gz | |
Merge pull request #2785 from hugovk/replace-configparser-deprecations
configparser: replace deprecated readfp with read_file
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/easy_install.py | 2 |
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'): |
