changeset 8:d3879aceba04 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_star_index_builder commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
author iuc
date Sun, 22 Nov 2020 12:54:19 +0000
parents 6c6c6df09e64
children c520a52b5174
files data_manager/rna_star_index_builder.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/rna_star_index_builder.py	Wed Aug 05 09:38:12 2020 -0400
+++ b/data_manager/rna_star_index_builder.py	Sun Nov 22 12:54:19 2020 +0000
@@ -41,7 +41,8 @@
             ]
         }
     }
-    open(args.config_file, 'w').write(json.dumps(data_manager_dict, sort_keys=True))
+    with open(args.config_file, 'w') as fh:
+        json.dump(data_manager_dict, fh, sort_keys=True)
 
 
 if __name__ == "__main__":