mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Fix mercurial hook, issue #88
This commit is contained in:
parent
4d0861dac4
commit
53f907b1d2
1 changed files with 6 additions and 0 deletions
|
|
@ -3,6 +3,12 @@ from __future__ import with_statement
|
|||
import os
|
||||
import sys
|
||||
from subprocess import Popen, PIPE
|
||||
try:
|
||||
# The 'demandimport' breaks pyflakes and flake8._pyflakes
|
||||
from mercurial import demandimport
|
||||
demandimport.disable()
|
||||
except ImportError:
|
||||
pass
|
||||
try:
|
||||
from configparser import ConfigParser
|
||||
except ImportError: # Python 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue