changeset 29235 | 1f5052d35b30 |
parent 29172 | 2ea9c9aa6e60 |
child 32424 | b4810bf95c03 |
--- 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")