python: Replace ujson with orjson.

Fixes #6507.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-08-06 16:09:47 -07:00
committed by Tim Abbott
parent 123790a72d
commit 61d0417e75
132 changed files with 1319 additions and 1238 deletions

View File

@@ -1,7 +1,7 @@
import time
from typing import Iterable, Optional, Sequence
import ujson
import orjson
from django.http import HttpRequest, HttpResponse
from django.utils.translation import ugettext as _
@@ -22,7 +22,7 @@ from zerver.tornado.handlers import AsyncDjangoHandler
@internal_notify_view(True)
def notify(request: HttpRequest) -> HttpResponse:
process_notification(ujson.loads(request.POST['data']))
process_notification(orjson.loads(request.POST['data']))
return json_success()
@has_request_variables