Python 1.5 fix.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 10 Jan 2009 01:55:06 +0000 (01:55 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 10 Jan 2009 01:55:06 +0000 (01:55 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3884 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/Batch/action-changed.py

index cc0cd4156e9a9f9ef4a12e4085550de7eefbb8f4..c789244e70bb0aadfc96428716898bc03901bb46 100644 (file)
@@ -43,7 +43,9 @@ import sys
 sep = sys.argv.index('--')
 targets = sys.argv[1:sep]
 sources = sys.argv[sep+1:]
-for t, s in zip(targets, sources):
+for i in xrange(len(targets)):
+    t = targets[i]
+    s = sources[i]
     fp = open(t, 'wb')
     fp.write('%s\\n')
     fp.write(open(s, 'rb').read())