Florent Xicluna  committed b891fb8

Fix mercurial hook, issue #88

  • Participants
  • Parent commits 51f4597
  • Branches develop

Comments (0)

Files changed (1)

File flake8/

 import sys
 from subprocess import Popen, PIPE
+    # The 'demandimport' breaks pyflakes and flake8._pyflakes
+    from mercurial import demandimport
+    demandimport.disable()
+except ImportError:
+    pass
     from configparser import ConfigParser
 except ImportError:   # Python 2
     from ConfigParser import ConfigParser