Patchwork [7,of,8] import-checker: allow symbol imports from hgweb.common and .request

login
register
mail settings
Submitter Laurent Charignon
Date Nov. 19, 2015, 1:46 p.m.
Message ID <111782cc7592732fc911.1447940785@waste.org>
Download mbox | patch
Permalink /patch/11514/
State Accepted
Commit e5be48dd8215c63e6b79c2926d707e9b3ff2c504
Headers show

Comments

Laurent Charignon - Nov. 19, 2015, 1:46 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# 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.

Patch

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',
 )