import-checker: add hgdemandimport to local modules
authorSiddharth Agarwal <sid0@fb.com>
Wed, 31 May 2017 20:07:08 -0700
changeset 32595 9e46627baa3c
parent 32594 517841766994
child 32596 19df975eb555
import-checker: add hgdemandimport to local modules This fixes test-check-module-imports.t.
contrib/import-checker.py
--- a/contrib/import-checker.py	Wed May 31 19:46:04 2017 -0700
+++ b/contrib/import-checker.py	Wed May 31 20:07:08 2017 -0700
@@ -244,7 +244,8 @@
         for top, dirs, files in os.walk(libpath):
             for i, d in reversed(list(enumerate(dirs))):
                 if (not os.path.exists(os.path.join(top, d, '__init__.py'))
-                    or top == libpath and d in ('hgext', 'mercurial')):
+                    or top == libpath and d in ('hgdemandimport', 'hgext',
+                                                'mercurial')):
                     del dirs[i]
             for name in files:
                 if not name.endswith(('.py', '.so', '.pyc', '.pyo', '.pyd')):