mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 03:46:53 +00:00
Restore the ConfigParser import, used by the flake8.hooks
This commit is contained in:
parent
4f57016809
commit
16b9fe108c
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue