mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user