From f93348b91591307e57e5e02110b1c1dc2db1b6ac Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Fri, 1 Aug 2025 05:43:31 +0300 Subject: [PATCH] style: remove unused code --- scrapling/core/utils.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scrapling/core/utils.py b/scrapling/core/utils.py index 5c2d245..5607f8d 100644 --- a/scrapling/core/utils.py +++ b/scrapling/core/utils.py @@ -2,7 +2,6 @@ import logging from itertools import chain from re import compile as re_compile -from orjson import loads as orjson_loads, JSONDecodeError from lxml import html from scrapling.core._types import Any, Dict, Iterable, List @@ -42,17 +41,6 @@ def setup_logger(): log = setup_logger() -def is_jsonable(content: bytes | str) -> bool: - if isinstance(content, bytes): - content = content.decode() - - try: - _ = orjson_loads(content) - return True - except JSONDecodeError: - return False - - def flatten(lst: Iterable[Any]) -> List[Any]: return list(chain.from_iterable(lst))