diff options
author | Georg Brandl <georg@python.org> | 2008-05-25 07:25:25 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-25 07:25:25 (GMT) |
commit | 392c6fc02d90f211dadc72448a07d9281260cb70 (patch) | |
tree | 8cc4d563ee077ef83612a67a02ce36f5c2397d37 /Lib/distutils | |
parent | 995ee9dab0a89b139e08a55fc64a60aaddc0d5c0 (diff) | |
download | cpython-392c6fc02d90f211dadc72448a07d9281260cb70.zip cpython-392c6fc02d90f211dadc72448a07d9281260cb70.tar.gz cpython-392c6fc02d90f211dadc72448a07d9281260cb70.tar.bz2 |
ConfigParser renaming reversal part 3: move module into place and adapt imports.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/upload.py | 6 | ||||
-rw-r--r-- | Lib/distutils/config.py | 6 | ||||
-rw-r--r-- | Lib/distutils/dist.py | 6 |
3 files changed, 3 insertions, 15 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py index 92c4bf2..8805d41 100644 --- a/Lib/distutils/command/upload.py +++ b/Lib/distutils/command/upload.py @@ -14,11 +14,7 @@ import httplib import base64 import urlparse import cStringIO as StringIO -try: - from configparser import ConfigParser -except ImportError: - # For backward-compatibility with Python versions < 2.6. - from ConfigParser import ConfigParser +from ConfigParser import ConfigParser class upload(PyPIRCCommand): diff --git a/Lib/distutils/config.py b/Lib/distutils/config.py index e07f8ac..e3a4c57 100644 --- a/Lib/distutils/config.py +++ b/Lib/distutils/config.py @@ -5,11 +5,7 @@ that uses .pypirc in the distutils.command package. """ import os import sys -try: - from configparser import ConfigParser -except ImportError: - # For backward-compatibility with Python versions < 2.6. - from ConfigParser import ConfigParser +from ConfigParser import ConfigParser from distutils.cmd import Command diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py index 6299919..0a21380 100644 --- a/Lib/distutils/dist.py +++ b/Lib/distutils/dist.py @@ -358,11 +358,7 @@ Common commands: (see '--help-commands' for more) def parse_config_files (self, filenames=None): - try: - from configparser import ConfigParser - except ImportError: - # For backward-compatibility with Python versions < 2.6. - from ConfigParser import ConfigParser + from ConfigParser import ConfigParser if filenames is None: filenames = self.find_config_files() |