[PATCH] import-checker: add hgdemandimport to local modules
Siddharth Agarwal
sid0 at fb.com
Wed May 31 23:07:23 EDT 2017
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1496286428 25200
# Wed May 31 20:07:08 2017 -0700
# Node ID 884f32a63e57d5d7ff3fce3d5b6b99c84df8309d
# Parent bd3d33c6014f4553c799c0d3236e17b28ffc85e3
import-checker: add hgdemandimport to local modules
This fixes test-check-module-imports.t.
diff --git a/contrib/import-checker.py b/contrib/import-checker.py
--- a/contrib/import-checker.py
+++ b/contrib/import-checker.py
@@ -244,7 +244,8 @@ def list_stdlib_modules():
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')):
More information about the Mercurial-devel
mailing list