don't shadow built-in name tuple

This commit is contained in:
gcarq 2018-03-18 00:01:22 +01:00
parent 7078bc00bd
commit 33ddc540cf
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Strategy(object):
# Minimal ROI designed for the strategy
self.minimal_roi = OrderedDict(sorted(
{int(key): value for (key, value) in self.custom_strategy.minimal_roi.items()}.items(),
key=lambda tuple: tuple[0])) # sort after converting to number
key=lambda t: t[0])) # sort after converting to number
# Optimal stoploss designed for the strategy
self.stoploss = float(self.custom_strategy.stoploss)