diff data_manager/data_manager_manual.py @ 5:744f607fac50 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_manual commit de6f0a7b126cc5abaee41c73cf2a9876ab0b437e"
author iuc
date Mon, 21 Oct 2019 06:30:45 -0400
parents 1ed87dee9e68
children 2445a874543a
line wrap: on
line diff
--- a/data_manager/data_manager_manual.py	Wed Oct 16 05:16:25 2019 -0400
+++ b/data_manager/data_manager_manual.py	Mon Oct 21 06:30:45 2019 -0400
@@ -64,7 +64,7 @@
                     repo_info = tdtm.generate_repository_info_elem_from_repository(tool_shed_repository, parent_elem=None)
                     if repo_info is not None:
                         repo_info = tostring(repo_info)
-                    tmp_file = tempfile.NamedTemporaryFile()
+                    tmp_file = tempfile.NamedTemporaryFile(mode="w")
                     tmp_file.write(__get_new_xml_definition(app, data_table, data_manager, repo_info, target_dir))
                     tmp_file.flush()
                     app.tool_data_tables.add_new_entries_from_config_file(tmp_file.name, None, app.config.shed_tool_data_table_config, persist=True)