Show More
@@ -28,9 +28,9 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 | from mercurial import demandimport; demandimport.enable() |
|
31 | if sys.version_info[0] < 3: | |
|
32 | from mercurial import demandimport; demandimport.enable() | |||
32 | except ImportError: |
|
33 | except ImportError: | |
33 | import sys |
|
|||
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)) | |
36 | sys.stderr.write("(check your install and PYTHONPATH)\n") |
|
36 | sys.stderr.write("(check your install and PYTHONPATH)\n") |
General Comments 0
You need to be logged in to leave comments.
Login now