removing unnecessary ujson import

This commit is contained in:
misagh 2018-09-21 21:59:35 +02:00
parent fbc77c1f28
commit 66b1eac1db

View File

@ -17,16 +17,9 @@ from freqtrade import misc, constants, OperationalException
from freqtrade.exchange import Exchange
from freqtrade.arguments import TimeRange
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 json_load(data):
"""Try to load data with ujson"""
if _UJSON: