From 0be89f8ceb15cba58d613be18493b190f868447a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20B=C3=A4ckmark?= Date: Tue, 2 Jan 2024 11:05:58 +0100 Subject: [PATCH] Minor optimization and a copyright fix --- test_jsonschema.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test_jsonschema.py b/test_jsonschema.py index 20394e11..8c4c6d27 100644 --- a/test_jsonschema.py +++ b/test_jsonschema.py @@ -1,4 +1,4 @@ -# Copyright 2022 Axis Communications AB. +# Copyright 2022-2023 Axis Communications AB and others. # For a full list of individual contributors, please see the commit history. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -28,9 +28,8 @@ ) def test_json_schema(filename): with open(filename) as input_file: - data = input_file.read() + event_schema = json.loads(input_file.read()) - event_schema = json.loads(data) stricter_metaschema = dict( jsonschema.Draft4Validator.META_SCHEMA, additionalProperties=False )