From patchwork Thu Nov 19 13:46:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [7, of, 8] import-checker: allow symbol imports from hgweb.common and .request From: Laurent Charignon X-Patchwork-Id: 11514 Message-Id: <111782cc7592732fc911.1447940785@waste.org> To: mercurial-devel@selenic.com Date: Thu, 19 Nov 2015 07:46:25 -0600 # HG changeset patch # User Yuya Nishihara # Date 1446353721 -32400 # Sun Nov 01 13:55:21 2015 +0900 # Node ID 111782cc7592732fc911cf23dc730d0399f6a106 # Parent 1061df69f49fd43912633816e67601024d98d0ce import-checker: allow symbol imports from hgweb.common and .request This seems the convention of hgweb. diff --git a/contrib/import-checker.py b/contrib/import-checker.py --- a/contrib/import-checker.py +++ b/contrib/import-checker.py @@ -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', )