changeset 1:b819e969b5d9 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_vsnp_excel commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165"
author iuc
date Sun, 22 Nov 2020 12:55:17 +0000
parents 25811bd45c44
children
files data_manager/vsnp_excel_fetcher.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/vsnp_excel_fetcher.py	Fri May 08 18:02:37 2020 -0400
+++ b/data_manager/vsnp_excel_fetcher.py	Sun Nov 22 12:55:17 2020 +0000
@@ -35,7 +35,7 @@
 def download(dbkey, name, url, out_file):
 
     with open(out_file) as fh:
-        params = json.loads(fh.read())
+        params = json.load(fh)
 
     workdir = params['output_data'][0]['extra_files_path']
     os.makedirs(workdir)
@@ -51,7 +51,7 @@
     data_manager_json["data_tables"]["vsnp_excel"] = data_manager_entry
 
     with open(out_file, 'w') as fh:
-        fh.write(json.dumps(data_manager_json, sort_keys=True))
+        json.dump(data_manager_json, fh, sort_keys=True)
 
 
 parser = argparse.ArgumentParser()