Mercurial > hg
comparison contrib/import-checker.py @ 27018:e5be48dd8215
import-checker: allow symbol imports from hgweb.common and .request
This seems the convention of hgweb.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Nov 2015 13:55:21 +0900 |
parents | 1fa66d3ad28d |
children | 69308357ecd1 |
comparison
equal
deleted
inserted
replaced
27017:cdc3e437b481 | 27018:e5be48dd8215 |
---|---|
12 import zlib | 12 import zlib |
13 | 13 |
14 # Whitelist of modules that symbols can be directly imported from. | 14 # Whitelist of modules that symbols can be directly imported from. |
15 allowsymbolimports = ( | 15 allowsymbolimports = ( |
16 '__future__', | 16 '__future__', |
17 'mercurial.hgweb.common', | |
18 'mercurial.hgweb.request', | |
17 'mercurial.i18n', | 19 'mercurial.i18n', |
18 'mercurial.node', | 20 'mercurial.node', |
19 ) | 21 ) |
20 | 22 |
21 # Modules that must be aliased because they are commonly confused with | 23 # Modules that must be aliased because they are commonly confused with |