diff data_manager/data_manager.py @ 2:4af4e175db0d draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_ncbi_taxonomy/ commit 04825a097d217d30deb5fcb6906fe718023e25b6"
author iuc
date Tue, 28 Apr 2020 03:57:59 -0400
parents 926847693e4d
children bdd8632fa9fb
line wrap: on
line diff
--- a/data_manager/data_manager.py	Tue Apr 04 18:08:21 2017 -0400
+++ b/data_manager/data_manager.py	Tue Apr 28 03:57:59 2020 -0400
@@ -56,7 +56,8 @@
     output_path = os.path.abspath(os.path.join(os.getcwd(), 'taxonomy'))
     for filename in os.listdir(workdir):
         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__':