From 8044846d3741408731967410692f7cf51d916671 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 7 Nov 2018 07:05:40 +0100 Subject: [PATCH] Fix some refactoring problems --- freqtrade/arguments.py | 2 +- freqtrade/optimize/resolver.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/arguments.py b/freqtrade/arguments.py index 429a7ca5a..ceaf3e7e5 100644 --- a/freqtrade/arguments.py +++ b/freqtrade/arguments.py @@ -108,7 +108,7 @@ class Arguments(object): '--customhyperopt', help='specify hyperopt class name (default: %(default)s)', dest='hyperopt', - default=Constants.DEFAULT_HYPEROPT, + default=constants.DEFAULT_HYPEROPT, type=str, metavar='NAME', ) diff --git a/freqtrade/optimize/resolver.py b/freqtrade/optimize/resolver.py index 78637483b..1e0316c12 100644 --- a/freqtrade/optimize/resolver.py +++ b/freqtrade/optimize/resolver.py @@ -9,7 +9,7 @@ import logging import os from typing import Optional, Dict, Type -from freqtrade.constants import Constants +from freqtrade.constants import DEFAULT_HYPEROPT from freqtrade.optimize.interface import IHyperOpt @@ -31,7 +31,7 @@ class HyperOptResolver(object): config = config or {} # Verify the hyperopt is in the configuration, otherwise fallback to the default hyperopt - hyperopt_name = config.get('hyperopt') or Constants.DEFAULT_HYPEROPT + hyperopt_name = config.get('hyperopt') or DEFAULT_HYPEROPT self.hyperopt = self._load_hyperopt(hyperopt_name, extra_dir=config.get('hyperopt_path')) def _load_hyperopt(