[Swift-commit] r7868 - SwiftApps/swift-galaxy/swift

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Mon May 12 17:06:51 CDT 2014


Author: ketan
Date: 2014-05-12 17:06:49 -0500 (Mon, 12 May 2014)
New Revision: 7868

Modified:
   SwiftApps/swift-galaxy/swift/swiftforeach.py
Log:
small change

Modified: SwiftApps/swift-galaxy/swift/swiftforeach.py
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeach.py	2014-05-12 21:00:06 UTC (rev 7867)
+++ SwiftApps/swift-galaxy/swift/swiftforeach.py	2014-05-12 22:06:49 UTC (rev 7868)
@@ -109,7 +109,7 @@
 
 
     #Build Swift source code
-    f = open(wdir+"/script.swift", 'w');
+    f = open(wdir+"/script.swift", "w");
     
     if k_or_t == "swiftK":
         
@@ -182,10 +182,10 @@
         else:
         
             f.write("foreach i in ["+rstart+":"+rend+":"+stepsize+"]{ \n");
-            f.write("  file out <sprintf(\""+outloc+"/%i.out\", i)>; \n");
-            f.write("  file err <sprintf(\""+outloc+"/%i.err\", i)>; \n");
+            f.write("    file out <sprintf(\""+outloc+"/%i.out\", i)>; \n");
+            f.write("    file err <sprintf(\""+outloc+"/%i.err\", i)>; \n");
         
-        f.write("(out,err) = anapp(exec, i, stringargs, fileargs, stdinfile);\n")
+        f.write("    (out,err) = anapp(exec, i, stringargs, fileargs, stdinfile);\n")
         f.write("}\n");
         f.write("printf(\"%s\", \"Done!\");\n");
         f.write("}\n");




More information about the Swift-commit mailing list