changeset 8:1d616842e1db draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_build_kraken_database/ commit 8b77954efb8d46dfb3bec5421819076f3757ad06"
author iuc
date Sun, 26 Jan 2020 14:34:23 +0000
parents 5b0724200665
children c668a45d8a55
files data_manager/make_json.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/make_json.py	Tue Jul 17 12:12:00 2018 -0400
+++ b/data_manager/make_json.py	Sun Jan 26 14:34:23 2020 +0000
@@ -16,7 +16,8 @@
     output_path = os.path.join(os.getcwd(), 'kraken-database')
     for filename in os.listdir(output_path):
         shutil.move(os.path.join(output_path, filename), target_directory)
-    file(args.output, 'w').write(json.dumps(data_manager_json))
+    with open(args.output, 'w') as out:
+        out.write(json.dumps(data_manager_json, sort_keys=True))
 
 
 if __name__ == '__main__':