Mercurial > public > mercurial-scm > hg-stable
diff contrib/import-checker.py @ 32458:0906b85bf222
demandimport: move to separate package
In Python 3, demand loading is per-package. Keeping demandimport in the
mercurial package would disable demand loading for any modules in
mercurial.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Sun, 21 May 2017 12:10:53 -0700 |
parents | d02888308235 |
children | 95085d747db8 |
line wrap: on
line diff
--- a/contrib/import-checker.py Sun May 21 12:09:01 2017 -0700 +++ b/contrib/import-checker.py Sun May 21 12:10:53 2017 -0700 @@ -25,7 +25,9 @@ ) # Whitelist of symbols that can be directly imported. -directsymbols = () +directsymbols = ( + 'demandimport', +) # Modules that must be aliased because they are commonly confused with # common variables and can create aliasing and readability issues.