diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-07-05 15:06:51 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-07-05 15:06:51 -0400 |
| commit | b49435397a5094f94678adf3549cc8941aa469b7 (patch) | |
| tree | b123bdd63482393ba1e2859364920f40a3d9f71d /setuptools/command/setopt.py | |
| parent | 5b865b1b6e23379d23aa80e74adb38db8b14b6ca (diff) | |
| download | python-setuptools-git-b49435397a5094f94678adf3549cc8941aa469b7.tar.gz | |
Use six for Python 2 compatibility
--HG--
branch : feature/issue-229
extra : source : 7b1997ececc5772798ce33a0f8e77387cb55a977
Diffstat (limited to 'setuptools/command/setopt.py')
| -rwxr-xr-x | setuptools/command/setopt.py | 6 |
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: |
