Changeset View
Changeset View
Standalone View
Standalone View
swh/objstorage/api/server.py
# Copyright (C) 2015-2019 The Software Heritage developers | # Copyright (C) 2015-2019 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import os | import os | ||||
import aiohttp.web | import aiohttp.web | ||||
vlorentz: why? | |||||
Done Inline ActionsThe json module is used down in that file, line 129, but the missing import is not flagged by flake8 because the same line, for different reasons (an assigned lambda), has a NoQA marker. The missing import is caught by mypy though, hence I've added the import. zack: The json module is used down in that file, line 129, but the missing import is not flagged by… | |||||
import json | |||||
from swh.core.config import read as config_read | from swh.core.config import read as config_read | ||||
from swh.core.api.asynchronous import (RPCServerApp, decode_request, | from swh.core.api.asynchronous import (RPCServerApp, decode_request, | ||||
encode_data_server as encode_data) | encode_data_server as encode_data) | ||||
from swh.core.api.serializers import msgpack_loads, SWHJSONDecoder | from swh.core.api.serializers import msgpack_loads, SWHJSONDecoder | ||||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |
why?