Source

flake8 / flake8 / hooks.py

Diff from to

File flake8/hooks.py

 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
     from ConfigParser import ConfigParser