Skip to content

Commit

Permalink
fix python syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lecorguille committed Feb 28, 2017
1 parent 73921a2 commit 705eb17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/galaxy/jobs/dynamic_tool_destination.py
Expand Up @@ -11,6 +11,7 @@
import copy
import collections
import re
from functools import reduce


# log to galaxy's logger
Expand Down Expand Up @@ -39,7 +40,6 @@ def get_keys_from_dict(dl, keys_list):
map(lambda x: get_keys_from_dict(x, keys_list), dl)



class RuleValidator:
"""
This class is the primary facility for validating configs. It's always called
Expand Down Expand Up @@ -1306,10 +1306,10 @@ def map_tool_to_destination(
for arg in rule["arguments"]:
arg_dict = {arg : rule["arguments"][arg]}
arg_keys_list = []
get_keys_from_dict(arg_dict, arg_keys_list)
get_keys_from_dict(arg_dict, arg_keys_list)
try:
options_value=reduce(dict.__getitem__, arg_keys_list, options)
arg_value=reduce(dict.__getitem__, arg_keys_list, arg_dict)
options_value = reduce(dict.__getitem__, arg_keys_list, options)
arg_value = reduce(dict.__getitem__, arg_keys_list, arg_dict)
if (arg_value != options_value):
matched = False
except KeyError:
Expand Down

0 comments on commit 705eb17

Please sign in to comment.