flake 8 fix

This commit is contained in:
creslinux 2018-07-12 16:17:28 +00:00
parent 3b7bcf9b35
commit 297d52228f

View File

@ -10,15 +10,17 @@ import arrow
from freqtrade import misc, constants, OperationalException
from freqtrade.exchange import Exchange
from freqtrade.arguments import TimeRange
logger = logging.getLogger(__name__)
import importlib
ujson_found = importlib.util.find_spec("ujson")
if ujson_found is not None:
import ujson
logger = logging.getLogger(__name__)
if ujson_found is not None:
logger.debug('Loaded UltraJson ujson in optimize.py')
def trim_tickerlist(tickerlist: List[Dict], timerange: TimeRange) -> List[Dict]:
if not tickerlist:
return tickerlist