summaryrefslogtreecommitdiffstats
path: root/test/MSVC/batch.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVC/batch.py')
-rw-r--r--test/MSVC/batch.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/MSVC/batch.py b/test/MSVC/batch.py
index 0ab116c..f089b60 100644
--- a/test/MSVC/batch.py
+++ b/test/MSVC/batch.py
@@ -40,7 +40,6 @@ _python_ = TestSCons._python_
test.write('fake_cl.py', """\
import os
-import string
import sys
input_files = sys.argv[2:]
if sys.argv[1][-1] in (os.sep, '\\\\'):
@@ -56,17 +55,16 @@ else:
# Delay writing the .log output until here so any trailing slash or
# backslash has been stripped, and the output comparisons later in this
# script don't have to account for the difference.
-open('fake_cl.log', 'ab').write(string.join(sys.argv[1:]) + '\\n')
+open('fake_cl.log', 'ab').write(" ".join(sys.argv[1:]) + '\\n')
for infile in input_files:
if dir:
- outfile = os.path.join(dir, string.replace(infile, '.c', '.obj'))
+ outfile = os.path.join(dir, infile.replace('.c', '.obj'))
else:
outfile = output
open(outfile, 'wb').write(open(infile, 'rb').read())
""")
test.write('fake_link.py', """\
-import string
import sys
ofp = open(sys.argv[1], 'wb')
for infile in sys.argv[2:]: