1. Tarek Ziadé
  2. flake8


Ian Cordasco  committed 20865ae Merge

Merged in develop (pull request #35)

Fix mercurial hook, issue #88

  • Participants
  • Parent commits 09f907e, b891fb8
  • Branches default

Comments (0)

Files changed (1)

File flake8/hooks.py

View file
 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