Skip to content

Commit

Permalink
Use namedtuple names instead of element ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed Sep 25, 2019
1 parent eabaa74 commit ab17135
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/galaxy/util/plugin_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ def plugins_dict(module, plugin_type_identifier):
def load_plugins(plugins_dict, plugin_source, extra_kwds=None, plugin_type_keys=('type',)):
if extra_kwds is None:
extra_kwds = {}
source_type, source = plugin_source
if source_type == "xml":
return __load_plugins_from_element(plugins_dict, source, extra_kwds)
if plugin_source.type == "xml":
return __load_plugins_from_element(plugins_dict, plugin_source.source, extra_kwds)
else:
return __load_plugins_from_dicts(plugins_dict, source, extra_kwds, plugin_type_keys=plugin_type_keys)
return __load_plugins_from_dicts(plugins_dict, plugin_source.source, extra_kwds, plugin_type_keys=plugin_type_keys)


def __load_plugins_from_element(plugins_dict, plugins_element, extra_kwds):
Expand Down

0 comments on commit ab17135

Please sign in to comment.