mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-28 04:58:04 +00:00
Address pylint issues
This commit is contained in:
parent
b7207fa3e7
commit
3c6124a093
@ -315,6 +315,7 @@ def check_dnssecstatus(server, zone, keys, policy=None, view=None):
|
|||||||
assert f"key: {key.tag}" in response
|
assert f"key: {key.tag}" in response
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=too-many-branches,too-many-locals
|
||||||
def _check_signatures(signatures, covers, fqdn, keys):
|
def _check_signatures(signatures, covers, fqdn, keys):
|
||||||
now = KeyTimingMetadata.now()
|
now = KeyTimingMetadata.now()
|
||||||
numsigs = 0
|
numsigs = 0
|
||||||
|
@ -18,8 +18,6 @@ import shutil
|
|||||||
import time
|
import time
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
import isctest
|
import isctest
|
||||||
from isctest.kasp import (
|
from isctest.kasp import (
|
||||||
Key,
|
Key,
|
||||||
@ -40,7 +38,7 @@ def check_file_contents_equal(file1, file2):
|
|||||||
return " ".join(line.split())
|
return " ".join(line.split())
|
||||||
|
|
||||||
def read_lines(file_path):
|
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()]
|
return [normalize_line(line) for line in file.readlines()]
|
||||||
|
|
||||||
lines1 = read_lines(file1)
|
lines1 = read_lines(file1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user