hg
changeset 32462 b4810bf95c03
parent 29235 1f5052d35b30
child 33914 1900381b6a6e
--- a/hg	Sun May 21 12:23:04 2017 -0700
+++ b/hg	Sun May 21 12:51:01 2017 -0700
@@ -28,8 +28,8 @@
 
 # enable importing on demand to reduce startup time
 try:
-    if sys.version_info[0] < 3:
-        from mercurial import demandimport; demandimport.enable()
+    if sys.version_info[0] < 3 or sys.version_info >= (3, 6):
+        import hgdemandimport; hgdemandimport.enable()
 except ImportError:
     sys.stderr.write("abort: couldn't find mercurial libraries in [%s]\n" %
                      ' '.join(sys.path))