changeset 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 2dcb3d52ef41
children 4c712b90c60a
files contrib/import-checker.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/import-checker.py	Tue May 02 21:08:38 2017 +0900
+++ b/contrib/import-checker.py	Tue May 02 22:24:57 2017 +0900
@@ -22,6 +22,13 @@
     'mercurial.hgweb.request',
     'mercurial.i18n',
     'mercurial.node',
+    # for cffi modules to re-export pure functions
+    'mercurial.pure.base85',
+    'mercurial.pure.bdiff',
+    'mercurial.pure.diffhelpers',
+    'mercurial.pure.mpatch',
+    'mercurial.pure.osutil',
+    'mercurial.pure.parsers',
 )
 
 # Whitelist of symbols that can be directly imported.