Close file properly.

This commit is contained in:
Robert Smallshire
2011-10-20 22:02:43 +02:00
parent 9adcc9bd79
commit f9639100a6
+1 -1
View File
@@ -442,7 +442,7 @@ def writeSegyStructure(filename, Data, SH, STH, endian='>'): # modified by A Sq
f.seek(index + TRACE_HEADER_NUM_BYTES + s * struct.calcsize(cformat))
f.write(strVal)
f.close
f.close()
def putValue(value, fileid, index, ctype='l', endian='>', number=1):