Commit f21c3f4a authored by Georg Brandl's avatar Georg Brandl

ConfigParser renaming reversal part 3: move module into place and adapt imports.

parent ca303a98
......@@ -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):
......
......@@ -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
......
......@@ -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()
......
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