changeset 29235:1f5052d35b30

hg: disable demandimport for py3
author timeless <timeless@mozdev.org>
date Wed, 11 May 2016 23:24:41 +0000
parents 393aef802535
children 1b7d907ec18a
files hg
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hg	Sun May 15 10:48:05 2016 +0900
+++ b/hg	Wed May 11 23:24:41 2016 +0000
@@ -28,9 +28,9 @@
 
 # enable importing on demand to reduce startup time
 try:
-    from mercurial import demandimport; demandimport.enable()
+    if sys.version_info[0] < 3:
+        from mercurial import demandimport; demandimport.enable()
 except ImportError:
-    import sys
     sys.stderr.write("abort: couldn't find mercurial libraries in [%s]\n" %
                      ' '.join(sys.path))
     sys.stderr.write("(check your install and PYTHONPATH)\n")