Repository 'data_manager_mash_sketch_builder'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/data_manager_mash_sketch_builder

Changeset 2:ce1d5c8d5bff (2020-11-22)
Previous changeset 1:b6016642539d (2020-04-07) Next changeset 3:7197573e88b9 (2023-04-16)
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
modified:
data_manager/mash_sketch_builder.py
b
diff -r b6016642539d -r ce1d5c8d5bff data_manager/mash_sketch_builder.py
--- a/data_manager/mash_sketch_builder.py Tue Apr 07 23:20:17 2020 -0400
+++ b/data_manager/mash_sketch_builder.py Sun Nov 22 12:50:56 2020 +0000
[
@@ -59,7 +59,8 @@
     parser.add_argument('--sketch-name', dest='sketch_name', help='Name for sketch')
     args = parser.parse_args()
 
-    data_manager_input = json.loads(open(args.data_manager_json).read())
+    with open(args.data_manager_json) as fh:
+        data_manager_input = json.load(fh)
 
     target_directory = data_manager_input['output_data'][0]['extra_files_path']
 
@@ -88,7 +89,8 @@
         target_directory,
     )
 
-    open(args.data_manager_json, 'w').write(json.dumps(data_manager_output, sort_keys=True))
+    with open(args.data_manager_json, 'w') as fh:
+        json.dump(data_manager_output, fh, sort_keys=True)
 
 
 if __name__ == "__main__":