import-checker: allow symbol imports from hgweb.common and .request
authorYuya Nishihara <yuya@tcha.org>
Sun, 01 Nov 2015 13:55:21 +0900
changeset 27018 e5be48dd8215
parent 27017 cdc3e437b481
child 27019 5cf184398ee7
import-checker: allow symbol imports from hgweb.common and .request This seems the convention of hgweb.
contrib/import-checker.py
--- a/contrib/import-checker.py	Thu Nov 19 15:02:27 2015 -0600
+++ b/contrib/import-checker.py	Sun Nov 01 13:55:21 2015 +0900
@@ -14,6 +14,8 @@
 # Whitelist of modules that symbols can be directly imported from.
 allowsymbolimports = (
     '__future__',
+    'mercurial.hgweb.common',
+    'mercurial.hgweb.request',
     'mercurial.i18n',
     'mercurial.node',
 )