Skip to content

Commit 1c0c540

Browse files
mpanarinccordoba12
authored andcommitted
Use ujson instead of regular json (#696)
1 parent e57119f commit 1c0c540

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

pyls/__main__.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Copyright 2017 Palantir Technologies, Inc.
22
import argparse
3-
import json
43
import logging
54
import logging.config
65
import sys
7-
from .python_ls import start_io_lang_server, start_tcp_lang_server, PythonLanguageServer
6+
7+
import ujson as json
8+
9+
from .python_ls import (PythonLanguageServer, start_io_lang_server,
10+
start_tcp_lang_server)
811

912
LOG_FORMAT = "%(asctime)s UTC - %(levelname)s - %(name)s - %(message)s"
1013

pyls/plugins/pylint_lint.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# Copyright 2018 Google LLC.
22
"""Linter plugin for pylint."""
33
import collections
4-
import json
54
import logging
65
import sys
76

7+
import ujson as json
88
from pylint.epylint import py_run
99
from pyls import hookimpl, lsp
1010

11-
1211
log = logging.getLogger(__name__)
1312

1413

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
'backports.functools_lru_cache; python_version<"3.2"',
3838
'jedi>=0.14.1,<0.16',
3939
'python-jsonrpc-server>=0.1.0',
40-
'pluggy'
40+
'pluggy',
41+
'ujson<=1.35'
4142
],
4243

4344
# List additional groups of dependencies here (e.g. development

0 commit comments

Comments
 (0)