From: Nicki Křížek Date: Mon, 14 Oct 2024 12:49:38 +0000 (+0200) Subject: Address pylint issues X-Git-Tag: v9.21.3~77^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c6124a0933d95e154ded274cea6fbef5ac60cc8;p=thirdparty%2Fbind9.git Address pylint issues --- diff --git a/bin/tests/system/isctest/kasp.py b/bin/tests/system/isctest/kasp.py index fb752e8dc75..a8c25c0d49e 100644 --- a/bin/tests/system/isctest/kasp.py +++ b/bin/tests/system/isctest/kasp.py @@ -315,6 +315,7 @@ def check_dnssecstatus(server, zone, keys, policy=None, view=None): assert f"key: {key.tag}" in response +# pylint: disable=too-many-branches,too-many-locals def _check_signatures(signatures, covers, fqdn, keys): now = KeyTimingMetadata.now() numsigs = 0 diff --git a/bin/tests/system/ksr/tests_ksr.py b/bin/tests/system/ksr/tests_ksr.py index ba02c5282e0..6caf4e76729 100644 --- a/bin/tests/system/ksr/tests_ksr.py +++ b/bin/tests/system/ksr/tests_ksr.py @@ -18,8 +18,6 @@ import shutil import time from typing import List, Optional -from datetime import datetime - import isctest from isctest.kasp import ( Key, @@ -40,7 +38,7 @@ def check_file_contents_equal(file1, file2): return " ".join(line.split()) def read_lines(file_path): - with open(file_path, "r") as file: + with open(file_path, "r", encoding="utf-8") as file: return [normalize_line(line) for line in file.readlines()] lines1 = read_lines(file1)