##// END OF EJS Templates
init: turn on demandimport for Python 3.6 and above...
Siddharth Agarwal -
r32424:b4810bf9 default
parent child Browse files
Show More
@@ -28,8 +28,8 b" if libdir != '@' 'LIBDIR' '@':"
28
28
29 # enable importing on demand to reduce startup time
29 # enable importing on demand to reduce startup time
30 try:
30 try:
31 if sys.version_info[0] < 3:
31 if sys.version_info[0] < 3 or sys.version_info >= (3, 6):
32 from mercurial import demandimport; demandimport.enable()
32 import hgdemandimport; hgdemandimport.enable()
33 except ImportError:
33 except ImportError:
34 sys.stderr.write("abort: couldn't find mercurial libraries in [%s]\n" %
34 sys.stderr.write("abort: couldn't find mercurial libraries in [%s]\n" %
35 ' '.join(sys.path))
35 ' '.join(sys.path))
General Comments 0
You need to be logged in to leave comments. Login now