aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/setopt.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-07-05 15:06:51 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-07-05 15:06:51 -0400
commitb49435397a5094f94678adf3549cc8941aa469b7 (patch)
treeb123bdd63482393ba1e2859364920f40a3d9f71d /setuptools/command/setopt.py
parent5b865b1b6e23379d23aa80e74adb38db8b14b6ca (diff)
downloadexternal_python_setuptools-b49435397a5094f94678adf3549cc8941aa469b7.tar.gz
external_python_setuptools-b49435397a5094f94678adf3549cc8941aa469b7.tar.bz2
external_python_setuptools-b49435397a5094f94678adf3549cc8941aa469b7.zip
Use six for Python 2 compatibility
--HG-- branch : feature/issue-229 extra : source : 7b1997ececc5772798ce33a0f8e77387cb55a977
Diffstat (limited to 'setuptools/command/setopt.py')
-rwxr-xr-xsetuptools/command/setopt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/setopt.py b/setuptools/command/setopt.py
index a04d6032..f78e0cd5 100755
--- a/setuptools/command/setopt.py
+++ b/setuptools/command/setopt.py
@@ -4,6 +4,8 @@ from distutils.errors import DistutilsOptionError
import distutils
import os
+from six.moves import configparser
+
from setuptools import Command
@@ -37,10 +39,8 @@ def edit_config(filename, settings, dry_run=False):
while a dictionary lists settings to be changed or deleted in that section.
A setting of ``None`` means to delete that setting.
"""
- from setuptools.compat import ConfigParser
-
log.debug("Reading configuration from %s", filename)
- opts = ConfigParser.RawConfigParser()
+ opts = configparser.RawConfigParser()
opts.read([filename])
for section, options in settings.items():
if options is None: