1
0

Directly import json from the standard library. (#8259)

By importing from canonicaljson the simplejson module was still being used
in some situations. After this change the std lib json is consistenty used
throughout Synapse.
This commit is contained in:
Patrick Cloke
2020-09-08 07:33:48 -04:00
committed by GitHub
parent cef00211c8
commit 72bec36d50
5 changed files with 7 additions and 6 deletions

View File

@@ -15,10 +15,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import json
from typing import List
import jsonschema
from canonicaljson import json
from jsonschema import FormatChecker
from synapse.api.constants import EventContentFields