comparison mercurial/__init__.py @ 32420: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 5700825889fb
children 397e3a2e9347
comparison
equal deleted inserted replaced
32419:d02888308235 32420:0906b85bf222
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 from __future__ import absolute_import 8 from __future__ import absolute_import
9 9
10 import sys 10 import sys
11
12 # Allow 'from mercurial import demandimport' to keep working.
13 import hgdemandimport
14 demandimport = hgdemandimport
11 15
12 __all__ = [] 16 __all__ = []
13 17
14 # Python 3 uses a custom module loader that transforms source code between 18 # Python 3 uses a custom module loader that transforms source code between
15 # source file reading and compilation. This is done by registering a custom 19 # source file reading and compilation. This is done by registering a custom