import sys
-# getting explicit encoding specification right for Python 2/3 would be messy,
-# so let's hope for the best
def read_whole_text(filename):
- with open(filename) as inf: # pylint: disable-msg=unspecified-encoding
+ with open(filename, encoding="utf-8") as inf:
return inf.read().strip()
def read_trs_result(filename):
result = None
- with open(filename, "r") as trs: # pylint: disable-msg=unspecified-encoding
+ with open(filename, "r", encoding="utf-8") as trs:
for line in trs:
items = line.split()
if len(items) < 2:
try:
import yaml
-# pylint: disable=bare-except
-except:
+except ImportError:
print("No python yaml module, skipping")
sys.exit(1)
return command
def run(self):
- # pylint: disable=consider-using-with
with open(os.devnull, "w", encoding="utf-8") as devnull:
- self.sub_process = subprocess.Popen(
+ self.sub_process = subprocess.Popen( # pylint: disable=consider-using-with
self.get_command(), shell=True, stdout=devnull
)
assert Re("Found token (.*) with matching token label") in cmd.out
-# pylint: disable-msg=too-many-locals
@pytest.mark.parametrize(
"alg_name,alg_type,alg_bits",
[
# collect keys that should be in this bundle
# collect lines that should be in this bundle
bundle_keys.append(key)
- # pylint: disable=unused-variable
for _arg in expected_cds:
bundle_lines.append(lines[line_no])
line_no += 1
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import shutil
import time
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import,unspecified-encoding,multiple-statements,use-maxsplit-arg,broad-exception-caught,f-string-without-interpolation
-
import os
import dns
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import os
import time
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import shutil
from nsec3.common import NSEC3_MARK, check_nsec3_case
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import os
import dns
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import os
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.util import param
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.kasp import KeyTimingMetadata
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=unused-import
-
import pytest
from isctest.util import param
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.kasp import KeyTimingMetadata
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import pytest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import pytest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from rollover.common import CDSS, DEFAULT_CONFIG, ROLLOVER_MARK
import isctest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.kasp import Ipub, IpubC, Iret
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from rollover.common import CDSS, DURATION, ROLLOVER_MARK, UNSIGNING_CONFIG
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from rollover.common import (
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
from isctest.kasp import KeyTimingMetadata
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import pytest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.util import param
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from isctest.util import param
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import os
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from rollover.common import CDSS, DEFAULT_CONFIG, DURATION, ROLLOVER_MARK
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
import pytest
from rollover.common import CDSS, DEFAULT_CONFIG, DURATION, ROLLOVER_MARK
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=redefined-outer-name,unused-import
-
from datetime import timedelta
import pytest
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=unused-variable
-
import socket
import struct
import time
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=unused-variable
-
import socket
import time
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-# pylint: disable=unused-variable
-
import socket
import time
# -- Project information -----------------------------------------------------
project = "BIND 9"
-# pylint: disable=redefined-builtin
copyright = "2023, Internet Systems Consortium"
author = "Internet Systems Consortium"
# -- Project information -----------------------------------------------------
project = "BIND 9"
-# pylint: disable=wrong-import-position
import datetime
year = datetime.datetime.now().year
-# pylint: disable=redefined-builtin
copyright = "%d, Internet Systems Consortium" % year
author = "Internet Systems Consortium"
# The master toctree document.
master_doc = "index"
-# pylint: disable=line-too-long
man_pages = [
(
"arpaname",