Florent Xicluna committed 83fcfe0

Unused import

Comments (0)

Files changed (1)

 import os
 import sys
 from io import StringIO
-import optparse
 import pep8
 import pyflakes
 from pyflakes import reporter, messages
-    # Python 2
-    from ConfigParser import ConfigParser
-except ImportError:
-    # Python 3
-    from configparser import ConfigParser
 pep8style = None
 class Flake8Reporter(reporter.Reporter):
     """Our own instance of a Reporter so that we can silence some messages."""
     class_mapping = dict((k, c) for (c, v) in error_mapping.items() for k in v)
     def __init__(self, ignore=None):
         super(Flake8Reporter, self).__init__(sys.stdout, sys.stderr)
         self.ignore = ignore or []