Skip to content

Commit

Permalink
Cast odict.items() and odict.values() to list
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek authored and nsoranzo committed Jul 5, 2018
1 parent c52d147 commit 492ee20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/tools/actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def execute(self, tool, trans, incoming=None, return_job=False, set_output_hid=T
# format.
input_ext = 'data' if tool.profile < 16.04 else "input"
input_dbkey = incoming.get("dbkey", "?")
for name, data in reversed(inp_data.items()):
for name, data in reversed(list(inp_data.items())):
if not data:
data = NoneDataset(datatypes_registry=app.datatypes_registry)
continue
Expand Down Expand Up @@ -615,7 +615,7 @@ def _wrapped_params(self, trans, tool, incoming, input_datasets=None):

def _get_on_text(self, inp_data):
input_names = []
for data in reversed(inp_data.values()):
for data in reversed(list(inp_data.values())):
if getattr(data, "hid", None):
input_names.append('data %s' % data.hid)

Expand Down

0 comments on commit 492ee20

Please sign in to comment.