diff --git a/pylsp/__main__.py b/pylsp/__main__.py index d6691740..0142dfb3 100644 --- a/pylsp/__main__.py +++ b/pylsp/__main__.py @@ -2,16 +2,12 @@ # Copyright 2021- Python Language Server Contributors. import argparse +import json import logging import logging.config import sys import time -try: - import ujson as json -except Exception: # pylint: disable=broad-except - import json - from .python_lsp import ( PythonLSPServer, start_io_lang_server, diff --git a/pylsp/plugins/pylint_lint.py b/pylsp/plugins/pylint_lint.py index 4dbb137d..500fa54a 100644 --- a/pylsp/plugins/pylint_lint.py +++ b/pylsp/plugins/pylint_lint.py @@ -4,6 +4,7 @@ """Linter plugin for pylint.""" import collections +import json import logging import sys import re @@ -13,10 +14,6 @@ from pylsp import hookimpl, lsp -try: - import ujson as json -except Exception: # pylint: disable=broad-except - import json log = logging.getLogger(__name__) diff --git a/pylsp/python_lsp.py b/pylsp/python_lsp.py index a31e7612..cb92f398 100644 --- a/pylsp/python_lsp.py +++ b/pylsp/python_lsp.py @@ -2,13 +2,13 @@ # Copyright 2021- Python Language Server Contributors. from functools import partial +import json import logging import os import socketserver import threading import uuid from typing import List, Dict, Any -import ujson as json from pylsp_jsonrpc.dispatchers import MethodDispatcher from pylsp_jsonrpc.endpoint import Endpoint diff --git a/pyproject.toml b/pyproject.toml index be764e4b..a7bb69f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,6 @@ dependencies = [ "jedi>=0.17.2,<0.20.0", "pluggy>=1.0.0", "python-lsp-jsonrpc>=1.1.0,<2.0.0", - "ujson>=3.0.0", ] dynamic = ["version"]