cpython: 89116bd505cb (original) (raw)
Mercurial > cpython
changeset 101225:89116bd505cb
Issue #20120: Merge with 3.5 [#20120]
Jason R. Coombs jaraco@jaraco.com | |
---|---|
date | Wed, 04 May 2016 12:00:32 -0400 |
parents | 8f7cb3b171f3(current diff)eae59b6bf133(diff) |
children | 3fe1c7ad3b58 7b2fafd78c1d |
files | Misc/NEWS |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-)[+] [-] Lib/distutils/config.py 4 Misc/NEWS 6 |
line wrap: on
line diff
--- a/Lib/distutils/config.py +++ b/Lib/distutils/config.py @@ -4,7 +4,7 @@ Provides the PyPIRCCommand class, the ba 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()[](#l1.16)
config = RawConfigParser()[](#l1.17) config.read(rc)[](#l1.18) sections = config.sections()[](#l1.19) if 'distutils' in sections:[](#l1.20)
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,12 @@ Release date: tba Core and Builtins ----------------- +- Issue #20120: Use RawConfigParser for .pypirc parsing,