diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-05-04 11:57:32 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-05-04 11:57:32 -0400 |
| commit | 422cf2b4adaf8a5d69f2baf10becbe341d3ab2a4 (patch) | |
| tree | 8e960de6afc61641207ff37badfae512e0f91aa6 | |
| parent | 290fed43d9cdcd3d738dda319e63e26d7972d734 (diff) | |
| download | cpython-git-422cf2b4adaf8a5d69f2baf10becbe341d3ab2a4.tar.gz | |
Issue #20120: Use RawConfigParser for .pypirc parsing, removing support for interpolation unintentionally added with move to Python 3. Behavior no longer does any interpolation in .pypirc files, matching behavior in Python 2.7 and Setuptools 19.0.
| -rw-r--r-- | Lib/distutils/config.py | 4 | ||||
| -rw-r--r-- | Misc/NEWS | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Lib/distutils/config.py b/Lib/distutils/config.py index 382aca8fc1..f0c7373171 100644 --- a/Lib/distutils/config.py +++ b/Lib/distutils/config.py @@ -4,7 +4,7 @@ Provides the PyPIRCCommand class, the base class for the command classes that uses .pypirc in the distutils.command package. """ import os -from configparser import ConfigParser +from configparser import RawConfigParser from distutils.cmd import Command @@ -53,7 +53,7 @@ class PyPIRCCommand(Command): repository = self.repository or self.DEFAULT_REPOSITORY realm = self.realm or self.DEFAULT_REALM - config = ConfigParser() + config = RawConfigParser() config.read(rc) sections = config.sections() if 'distutils' in sections: @@ -10,6 +10,12 @@ Release date: tba Core and Builtins ----------------- +- Issue #20120: Use RawConfigParser for .pypirc parsing, + removing support for interpolation unintentionally added + with move to Python 3. Behavior no longer does any + interpolation in .pypirc files, matching behavior in Python + 2.7 and Setuptools 19.0. + - Issue #26659: Make the builtin slice type support cycle collection. - Issue #26718: super.__init__ no longer leaks memory if called multiple times. |
