diff -r 517841766994 -r 9e46627baa3c 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')):