Commit a1b5cdea authored by Jason R. Coombs's avatar Jason R. Coombs

Issue #20120: Use RawConfigParser for .pypirc parsing, removing support for...

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.
parent ef3d89d5
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment