Commits

Ian Cordasco  committed 20865ae Merge

Merged in develop (pull request #35)

Fix mercurial hook, issue #88

  • Participants
  • Parent commits 09f907e, b891fb8

Comments (0)

Files changed (1)

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