From b6434040de76f43d66b710da60f1be4f88b80adf Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 12 Sep 2022 20:24:28 +0200 Subject: [PATCH] Remove plain json serializer implementation --- freqtrade/rpc/api_server/ws/serializer.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/freqtrade/rpc/api_server/ws/serializer.py b/freqtrade/rpc/api_server/ws/serializer.py index d1ddd84f0..22d177f85 100644 --- a/freqtrade/rpc/api_server/ws/serializer.py +++ b/freqtrade/rpc/api_server/ws/serializer.py @@ -1,4 +1,3 @@ -import json import logging from abc import ABC, abstractmethod @@ -38,14 +37,6 @@ class WebSocketSerializer(ABC): await self._websocket.close(code) -class JSONWebSocketSerializer(WebSocketSerializer): - def _serialize(self, data): - return json.dumps(data, default=_json_default) - - def _deserialize(self, data): - return json.loads(data, object_hook=_json_object_hook) - - class HybridJSONWebSocketSerializer(WebSocketSerializer): def _serialize(self, data) -> str: return str(orjson.dumps(data, default=_json_default), "utf-8")