author | timeless <timeless@mozdev.org> |
Wed, 11 May 2016 23:24:41 +0000 | |
changeset 29235 | 1f5052d35b30 |
parent 29234 | 393aef802535 |
child 29236 | 1b7d907ec18a |
--- 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")