import-checker: add hgdemandimport to local modules
This fixes test-check-module-imports.t.
--- 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')):