changeset: 101224:eae59b6bf133 branch: 3.5 parent: 101221:0d015f6aba8b user: Jason R. Coombs date: Wed May 04 11:57:32 2016 -0400 files: Lib/distutils/config.py Misc/NEWS description: 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. diff -r 0d015f6aba8b -r eae59b6bf133 Lib/distutils/config.py --- a/Lib/distutils/config.py Wed May 04 11:26:42 2016 +0300 +++ b/Lib/distutils/config.py Wed May 04 11:57:32 2016 -0400 @@ -4,7 +4,7 @@ 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 @@ 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: diff -r 0d015f6aba8b -r eae59b6bf133 Misc/NEWS --- a/Misc/NEWS Wed May 04 11:26:42 2016 +0300 +++ b/Misc/NEWS Wed May 04 11:57:32 2016 -0400 @@ -10,6 +10,12 @@ 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.