flake 8 fix
This commit is contained in:
parent
3b7bcf9b35
commit
297d52228f
@ -10,15 +10,17 @@ import arrow
|
|||||||
from freqtrade import misc, constants, OperationalException
|
from freqtrade import misc, constants, OperationalException
|
||||||
from freqtrade.exchange import Exchange
|
from freqtrade.exchange import Exchange
|
||||||
from freqtrade.arguments import TimeRange
|
from freqtrade.arguments import TimeRange
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
import importlib
|
import importlib
|
||||||
ujson_found = importlib.util.find_spec("ujson")
|
ujson_found = importlib.util.find_spec("ujson")
|
||||||
if ujson_found is not None:
|
if ujson_found is not None:
|
||||||
import ujson
|
import ujson
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
if ujson_found is not None:
|
||||||
logger.debug('Loaded UltraJson ujson in optimize.py')
|
logger.debug('Loaded UltraJson ujson in optimize.py')
|
||||||
|
|
||||||
|
|
||||||
def trim_tickerlist(tickerlist: List[Dict], timerange: TimeRange) -> List[Dict]:
|
def trim_tickerlist(tickerlist: List[Dict], timerange: TimeRange) -> List[Dict]:
|
||||||
if not tickerlist:
|
if not tickerlist:
|
||||||
return tickerlist
|
return tickerlist
|
||||||
|
Loading…
Reference in New Issue
Block a user