mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-01 15:37:32 +08:00
change for upload tool: keep the original format of the file
This commit is contained in:
@@ -41,7 +41,7 @@ def convert_newlines(fname):
|
||||
shutil.copyfile(fname, temp_name)
|
||||
fp = open(fname, "wt")
|
||||
for line in file(temp_name, "U"):
|
||||
line = line.strip() + '\n'
|
||||
line = line.rstrip() + '\n'
|
||||
fp.write(line)
|
||||
fp.close()
|
||||
os.remove(temp_name)
|
||||
|
||||
Reference in New Issue
Block a user