Mercurial > public > mercurial-scm > hg
comparison contrib/import-checker.py @ 32507:95085d747db8
import-checker: allow importing symbols from pure modules
This allows us to re-export pure functions from cffi modules:
# mercurial/cffi/base85.py
from ..pure.base85 import *
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 02 May 2017 22:24:57 +0900 |
parents | 0906b85bf222 |
children | 4c712b90c60a |
comparison
equal
deleted
inserted
replaced
32506:2dcb3d52ef41 | 32507:95085d747db8 |
---|---|
20 '__future__', | 20 '__future__', |
21 'mercurial.hgweb.common', | 21 'mercurial.hgweb.common', |
22 'mercurial.hgweb.request', | 22 'mercurial.hgweb.request', |
23 'mercurial.i18n', | 23 'mercurial.i18n', |
24 'mercurial.node', | 24 'mercurial.node', |
25 # for cffi modules to re-export pure functions | |
26 'mercurial.pure.base85', | |
27 'mercurial.pure.bdiff', | |
28 'mercurial.pure.diffhelpers', | |
29 'mercurial.pure.mpatch', | |
30 'mercurial.pure.osutil', | |
31 'mercurial.pure.parsers', | |
25 ) | 32 ) |
26 | 33 |
27 # Whitelist of symbols that can be directly imported. | 34 # Whitelist of symbols that can be directly imported. |
28 directsymbols = ( | 35 directsymbols = ( |
29 'demandimport', | 36 'demandimport', |