strip out spaces in filenames

This commit is contained in:
jendave
2012-05-13 09:27:06 +00:00
parent 03fba51491
commit aaa14ab894

View File

@@ -90,7 +90,7 @@ for currentSet in setCodes :
currentMissing.sort()
currentImplemented.sort()
with open(sys.path[0] + os.sep + "PerSetTrackingResults" + os.sep + "set_" + currentSet + ".txt", "w") as output :
with open(sys.path[0] + os.sep + "PerSetTrackingResults" + os.sep + "set_" + currentSet.strip() + ".txt", "w") as output :
output.write("Implemented (" + str(len(currentImplemented)) + "):\n")
for everyImplemented in currentImplemented :
output.write(everyImplemented + '\n')