Mercurial > hg > mercurial-source
changeset 33378:9e46627baa3c
import-checker: add hgdemandimport to local modules
This fixes test-check-module-imports.t.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 31 May 2017 20:07:08 -0700 |
parents | 517841766994 |
children | 19df975eb555 |
files | contrib/import-checker.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/import-checker.py +++ b/contrib/import-checker.py @@ -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')):