Commits

Florent Xicluna  committed 49662c6 Merge

Merged: unused import

  • Participants
  • Parent commits da2c6af, 83fcfe0
  • Branches flint-merge

Comments (0)

Files changed (1)

File flake8/util.py

 import os
 import sys
 from io import StringIO
-import optparse
 import pep8
 import pyflakes
 from pyflakes import reporter, messages
 
-try:
-    # 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 []