python3 fix (#5043)

strings can not be written to byte mode file handlers.
writing resulted in: TypeError: a bytes-like object is required, not 'str'

Alternative would be to make string byte.
This commit is contained in:
M Bernt
2017-11-20 22:34:02 +01:00
committed by Björn Grüning
parent 3e2e149325
commit b2cc634e8a
+1 -1
View File
@@ -59,7 +59,7 @@ def main():
except Exception:
pass
tmp_file = tempfile.NamedTemporaryFile('w+b')
tmp_file = tempfile.NamedTemporaryFile('w+')
# Write the R header row to the temporary file
hdr_str = "\t".join("c%s" % str(col + 1) for col in cols)
tmp_file.write("%s\n" % hdr_str)