Show More
@@ -5,6 +5,7 b' It also checks certain aspects of the pa' | |||||
5 |
|
5 | |||
6 | from __future__ import absolute_import, print_function |
|
6 | from __future__ import absolute_import, print_function | |
7 |
|
7 | |||
|
8 | import os | |||
8 | import struct |
|
9 | import struct | |
9 | import subprocess |
|
10 | import subprocess | |
10 | import sys |
|
11 | import sys | |
@@ -129,7 +130,7 b' def importparsers(hexversion):' | |||||
129 | "import sys; sys.hexversion=%s; " |
|
130 | "import sys; sys.hexversion=%s; " | |
130 | "import mercurial.cext.parsers" % hexversion |
|
131 | "import mercurial.cext.parsers" % hexversion | |
131 | ) |
|
132 | ) | |
132 |
cmd = " |
|
133 | cmd = "\"%s\" -c \"%s\"" % (os.environ['PYTHON'], code) | |
133 | # We need to do these tests inside a subprocess because parser.c's |
|
134 | # We need to do these tests inside a subprocess because parser.c's | |
134 | # version-checking code happens inside the module init function, and |
|
135 | # version-checking code happens inside the module init function, and | |
135 | # when using reload() to reimport an extension module, "The init function |
|
136 | # when using reload() to reimport an extension module, "The init function |
General Comments 0
You need to be logged in to leave comments.
Login now