From 16b9fe108c852ad50f88c766989a8104fd4adead Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Wed, 13 Feb 2013 19:27:43 +0100 Subject: [PATCH] Restore the ConfigParser import, used by the flake8.hooks --- flake8/util.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flake8/util.py b/flake8/util.py index 2dd6a80..0702b3e 100644 --- a/flake8/util.py +++ b/flake8/util.py @@ -7,6 +7,13 @@ 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