summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-05-04 11:57:32 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-05-04 11:57:32 -0400
commita1b5cdeacee878322b0aa52af208a2f826b4b800 (patch)
treef991b2212aa9231d158c2a6415adb0ce99be9b64
parentef3d89d581b83fa214d5563d4e3a9e7c901746ab (diff)
downloadpython-setuptools-git-a1b5cdeacee878322b0aa52af208a2f826b4b800.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--config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.py b/config.py
index 382aca8f..f0c73731 100644
--- a/config.py
+++ b/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: