]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Apply black formatting changes
authorNicki Křížek <nicki@isc.org>
Wed, 21 Jan 2026 21:31:15 +0000 (22:31 +0100)
committerNicki Křížek <nicki@isc.org>
Thu, 22 Jan 2026 08:41:21 +0000 (09:41 +0100)
Generated by black 26.1.0 which got updated in CI.

63 files changed:
bin/tests/system/bailiwick/ans1/ans.py
bin/tests/system/bailiwick/ans2/ans.py
bin/tests/system/checkds/tests_checkds.py
bin/tests/system/cipher-suites/tests_cipher_suites.py
bin/tests/system/conftest.py
bin/tests/system/dnssec/tests_badkey.py
bin/tests/system/dnssec/tests_delv.py
bin/tests/system/dnssec/tests_policy.py
bin/tests/system/dnssec/tests_signing.py
bin/tests/system/dnssec/tests_tat.py
bin/tests/system/dnssec/tests_validation.py
bin/tests/system/ecdsa/tests_ecdsa.py
bin/tests/system/fetchlimit/tests_sh_fetchlimit.py
bin/tests/system/filters/common.py
bin/tests/system/filters/tests_filter_a_v4.py
bin/tests/system/filters/tests_filter_a_v6.py
bin/tests/system/filters/tests_filter_aaaa_v4.py
bin/tests/system/filters/tests_filter_aaaa_v6.py
bin/tests/system/filters/tests_filter_checkconf.py
bin/tests/system/filters/tests_filter_dns64.py
bin/tests/system/forward/tests_sh_forward.py
bin/tests/system/glue/tests_glue.py
bin/tests/system/hooks/tests_hooks.py
bin/tests/system/isctest/__main__.py
bin/tests/system/isctest/asyncserver.py
bin/tests/system/isctest/log/basic.py
bin/tests/system/isctest/log/watchlog.py
bin/tests/system/isctest/text.py
bin/tests/system/isctest/vars/build.py
bin/tests/system/isctest/vars/features.py
bin/tests/system/isctest/vars/openssl.py
bin/tests/system/keepalive/tests_keepalive.py
bin/tests/system/keyfromlabel/tests_keyfromlabel.py
bin/tests/system/nsec3/tests_nsec3_change.py
bin/tests/system/nsec3/tests_nsec3_initial.py
bin/tests/system/nsec3/tests_nsec3_reconfig.py
bin/tests/system/nsec3/tests_nsec3_reload.py
bin/tests/system/nsec3/tests_nsec3_restart.py
bin/tests/system/optout/tests_optout.py
bin/tests/system/pipelined/ans5/ans.py
bin/tests/system/qmin/tests_sh_qmin.py
bin/tests/system/query-source/tests_querysource_none.py
bin/tests/system/resolver/tests_sh_resolver.py
bin/tests/system/rndc/tests_cve-2023-3341.py
bin/tests/system/rollover-ksk-3crowd/tests_rollover_three_is_a_crowd.py
bin/tests/system/rpzextra/tests_rpzextra.py
bin/tests/system/rpzrecurse/tests_sh_rpzrecurse.py
bin/tests/system/selftest/tests_zone_analyzer.py
bin/tests/system/statistics/tests_sh_statistics.py
bin/tests/system/statschannel/generic.py
bin/tests/system/statschannel/tests_json.py
bin/tests/system/statschannel/tests_xml.py
bin/tests/system/tcp/ans6/ans.py
bin/tests/system/timeouts/tests_tcp_timeouts.py
bin/tests/system/tsig/tests_tsig_hypothesis.py
bin/tests/system/upforwd/tests_sh_upforwd.py
bin/tests/system/xfer/tests_sh_xfer.py
bin/tests/system/xferquota/setup.py
bin/tests/system/zero/tests_sh_zero.py
contrib/gitchangelog/gitchangelog.py
doc/arm/_ext/iscconf.py
doc/arm/_ext/mergegrammar.py
doc/misc/parsegrammar.py

index f0b152ac3d7931b7f4359d83253f0dcd58957aa7..859e77491f09fbb0ad9e1c90cb566c18a337cccc 100644 (file)
@@ -24,7 +24,6 @@ from isctest.asyncserver import (
 
 from bailiwick_ans import ResponseSpoofer, spoofing_server
 
-
 ATTACKER_IP = "10.53.0.3"
 TTL = 3600
 
index 1a9be3d931ed2f98fb4c81eedcfb833f1ecb54bb..151a2c6cccea2f2c35eb2508f82cabbbd8675b63 100644 (file)
@@ -24,7 +24,6 @@ from isctest.asyncserver import (
 
 from bailiwick_ans import ResponseSpoofer, spoofing_server
 
-
 ATTACKER_IP = "10.53.0.3"
 TTL = 3600
 
index 9cf46a3843dccd6de304c60b228d0b6a5d3673ff..26265ad612758ce0e641fd87df670ff85cbf1fc1 100755 (executable)
@@ -28,7 +28,6 @@ import dns.rcode
 import dns.rdataclass
 import dns.rdatatype
 
-
 pytestmark = [
     pytest.mark.skipif(
         sys.version_info < (3, 7), reason="Python >= 3.7 required [GL #3001]"
index 782a24509f9b0a5843e695a2a92797ec064c9dbd..4b2ba075187ed59c8ab816e48c05ed001559fc7c 100644 (file)
@@ -18,7 +18,6 @@ import dns.message
 import isctest
 import isctest.mark
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "ns*/example*.db",
index 3a46f4d492d976b22bd785bcd851c7dddf761f7f..5daf4f908fffb08b0bce2b2f2ea889131d516750 100644 (file)
@@ -26,7 +26,6 @@ pytest.register_assert_rewrite("isctest")
 import isctest
 from isctest.vars.build import SYSTEM_TEST_DIR_GIT_PATH
 
-
 # Silence warnings caused by passing a pytest fixture to another fixture.
 # pylint: disable=redefined-outer-name
 
index ca80734d4d7c302bcce4e83506c2c6314ca2cf76..d7dffca0c2bf20e17309f52bf991259fdf0e76c8 100644 (file)
@@ -16,7 +16,6 @@ import pytest
 import isctest
 from isctest.util import param
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "*/K*",
index 436c869d8694fb73261c7d92de97773ec601dc5a..9de2252d0998906e282059b35d1214ab0d1e1e2c 100644 (file)
@@ -17,7 +17,6 @@ import pytest
 
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "*/K*",
index 28612b3a4847bf5eb6b305cd7cced7f85fc09b05..06ec229b31fe743d387975128218e6182fbb8e4b 100644 (file)
@@ -18,7 +18,6 @@ import pytest
 
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "*/K*",
index 01ccff164c65fa314785010315d234aa271dad64..8ed481025ac844044e6867c487eae43ae3034352 100644 (file)
@@ -23,7 +23,6 @@ import pytest
 from isctest.kasp import SettimeOptions
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "*/K*",
index 6fdfe36992a2aa51e0a4e4c75e286cf7d920d5bf..2afff050aeaf1014ca65ef3225132a8119ce86cb 100644 (file)
@@ -18,7 +18,6 @@ import pytest
 
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "*/K*",
index 9a74873392f62308c22067383ba6392564501c2c..c713d3a6b259f594dc0f674db4953e6bc42d5a47 100644 (file)
@@ -23,7 +23,6 @@ import isctest
 import isctest.mark
 from isctest.util import param
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "*/K*",
index e0379f79f160400e48ddb58120e0db100c32dc5a..08b4ee0e685a18a932050aa8852b67acac2e4fa9 100644 (file)
@@ -16,7 +16,6 @@ import dns.flags
 
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "ns*/trusted.conf",
index b996c60aa8e5a2ef9229cefff26fa434051593bc..23076980b5d7a9acb9134d497204e4ea624b0183 100644 (file)
@@ -11,7 +11,6 @@
 
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "dig.out.*",
index 4944775ed13cce5e14559eb4fc1ae9d8f26651a2..e5ff22e977226aaefdc5518f85bfd8872a76ad4f 100644 (file)
@@ -14,7 +14,6 @@ from dns import rdataclass, rdatatype
 
 import isctest
 
-
 ARTIFACTS = [
     "conf/*.conf",
     "ns*/trusted.conf",
index 0e143467df761ebcbbf3ac95419222b5d782175b..cb690eb35285971bd636a3368c601743ad9d019c 100644 (file)
@@ -20,7 +20,6 @@ from filters.common import (
     prime_cache,
 )
 
-
 pytestmark = pytest.mark.extra_artifacts(ARTIFACTS)
 
 
index 8ce36974e26e6961c31197a6b8ff6ccc80d303be..1d33f2fd0577239759c46c222d6548e0f94a578e 100644 (file)
@@ -20,7 +20,6 @@ from filters.common import (
     prime_cache,
 )
 
-
 pytestmark = pytest.mark.extra_artifacts(ARTIFACTS)
 
 
index 5a78714e241a62ab3417aba13ed9aa0e07ea3c86..3c783a9cf32b2b71ea6abf385ffdd35ab2776081 100644 (file)
@@ -21,7 +21,6 @@ from filters.common import (
     prime_cache,
 )
 
-
 pytestmark = pytest.mark.extra_artifacts(ARTIFACTS)
 
 
index f4dbc70fcd66feef7064e468640b024c74322b34..b973724e1451b665eafb9d4884cbf34223fca6af 100644 (file)
@@ -20,7 +20,6 @@ from filters.common import (
     prime_cache,
 )
 
-
 pytestmark = pytest.mark.extra_artifacts(ARTIFACTS)
 
 
index 17dbdb989acdf522ccb0b48d5f3c59cded37f485..de5eae132fd76c4ecc381271e5dd5f7c0ec3b8aa 100644 (file)
@@ -19,7 +19,6 @@ import isctest
 
 from filters.common import ARTIFACTS
 
-
 pytestmark = pytest.mark.extra_artifacts(ARTIFACTS)
 
 
index 218b834682f718d3362cd242cb3627d53d523ce1..39c0bbc603fd01111ea51ce140d6e33fd3ddbbbe 100644 (file)
@@ -15,7 +15,6 @@ import isctest
 
 from filters.common import ARTIFACTS
 
-
 pytestmark = pytest.mark.extra_artifacts(ARTIFACTS)
 
 
index 0d30b8c3ad393f173441ab09e3db8aee3b75f61d..6f230e93cab02a6fe719cceb791020ec5f9ba24f 100644 (file)
@@ -11,7 +11,6 @@
 
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "dig.out.*",
index b015f56f236bdee7cbe69074d379885f27714c08..93b0164c39bc46c48eaaabf0baa78f32f71e2884 100644 (file)
@@ -16,7 +16,6 @@ import pytest
 
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "ns1/*",
index e50720f218ee070ad309e27b77eabb5abbc6f644..87ad1de89d62cd301292f117ebda6db5ecc657b8 100644 (file)
@@ -17,7 +17,6 @@ import dns
 import pytest
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(["conf/*.conf"])
 
 
index d1be74c7272b4b25fa26fd2b1dfbc3a66c207284..3055c89d79990e8ebf6cf928cec51363125988f2 100644 (file)
@@ -14,7 +14,6 @@ import logging
 from . import log
 from .vars import ALL, init_vars
 
-
 if __name__ == "__main__":
     # use root logger as fallback - we're not interested in proper logs here
     log.basic.LOGGERS["conftest"] = logging.getLogger()
index add1ab07ba4ddbece762d9805f461af14429101e..165a6db9dedd7819b0ce203625b407ae958622c5 100644 (file)
@@ -56,7 +56,6 @@ import dns.tsig
 import dns.version
 import dns.zone
 
-
 _UdpHandler = Callable[
     [bytes, Tuple[str, int], asyncio.DatagramTransport], Coroutine[Any, Any, None]
 ]
index 3474f1b4433ea852c1728ca576163836397c3100..812e83e254456618d1a392d30d0191356f859043 100644 (file)
@@ -14,7 +14,6 @@ from pathlib import Path
 import textwrap
 from typing import Dict, Optional
 
-
 LOG_FORMAT = "%(asctime)s %(levelname)7s:%(name)s  %(message)s"
 LOG_INDENT = 4
 
index 447879662a0d7c662d40ab644e9ea4e0c8f51b0f..d7154995b7d9b8698e10bf43a445f28a48f70dc4 100644 (file)
@@ -17,7 +17,6 @@ import time
 
 from isctest.text import compile_pattern, FlexPattern, LineReader
 
-
 T = TypeVar("T")
 OneOrMore = Union[T, List[T]]
 
index ca3cc835e71f7d129306bfb0f98654ca29b7e5d2..33798c37032863a9849a96b796c22366eabe85c1 100644 (file)
@@ -16,7 +16,6 @@ import re
 from re import compile as Re
 from typing import Iterator, List, Match, Optional, Pattern, TextIO, Union
 
-
 FlexPattern = Union[str, Pattern]
 
 
index e22fb95a0f0dbe3f19ade328eb80d3d2bf13144c..aa251e0e6b3a01041fa8aceaa8eb0d0e13123956 100644 (file)
@@ -12,7 +12,6 @@
 from pathlib import Path
 from typing import Dict
 
-
 SYSTEM_TEST_DIR_GIT_PATH = "bin/tests/system"
 
 
index 69ecc6786f8690fe11e5d800fce643556ff14991..4c47efa00d4be426741e81db407b1d2384443df8 100644 (file)
@@ -14,7 +14,6 @@ import subprocess
 
 from .basic import BASIC_VARS
 
-
 FEATURES = {
     "DNSTAP": "--enable-dnstap",
     "EXTENDED_DS_DIGEST": "--extended-ds-digest",
index 3d1829e7235396fef2a854f1c93ce8b36f9d4b97..52b42ccfd9c32c658ce2a39d0cbeada2e1073221 100644 (file)
@@ -15,7 +15,6 @@ from typing import Optional
 
 from .. import log
 
-
 OPENSSL_VARS = {
     "OPENSSL_CONF": os.getenv("OPENSSL_CONF", None),
     "SOFTHSM2_CONF": os.getenv("SOFTHSM2_CONF", None),
index d0efc6af542ca717954f69d0b13471a4abb6cbe5..40f9c4a21b99eeb400110e9185076d796652d478 100644 (file)
@@ -12,7 +12,6 @@
 import isctest
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     ["ns2/named.stats"],
 )
index 0eb9370060aaed763fbe08b96393b4cc3d05c5e1..d5c18e4f3560c93063c877d75bfe9800d8127a7f 100644 (file)
@@ -18,7 +18,6 @@ import pytest
 
 import isctest.mark
 
-
 pytestmark = [
     isctest.mark.softhsm2_environment,
     pytest.mark.extra_artifacts(
index 6da20aaf7ff2624f9088a846e87a1f80cb5299e0..860c8d3caf0599a30214e728ca8e4624f7569e5f 100644 (file)
@@ -30,7 +30,6 @@ from nsec3.common import (
     check_nsec3_case,
 )
 
-
 # include the following zones when rendering named configs
 ZONES = {
     "nsec3-change.kasp",
index 9795cf04cb8f22002f79c2f3e141edfb73a9046b..038cd144284fb968562693b26f6da4c3f3a1ff84 100644 (file)
@@ -28,7 +28,6 @@ from nsec3.common import (
     check_nsec3_case,
 )
 
-
 # include the following zones when rendering named configs
 ZONES = {
     "nsec-to-nsec3.kasp",
index dd29443050b81ed15e3d0d3f61b75a1ec58b5d99..cb75f1caa49f138f88eb4b53434e2b69cd8f8e6f 100644 (file)
@@ -30,7 +30,6 @@ from nsec3.common import (
     check_nsec3_case,
 )
 
-
 # include the following zones when rendering named configs
 ZONES = {
     "nsec3-to-nsec.kasp",
index 0e0daa884d109852997a7b4ca09c6091a55e7630..33171932bd615583f0d0087f8f32d4ff7b918a7a 100644 (file)
@@ -25,7 +25,6 @@ from nsec3.common import (
     check_nsec3_case,
 )
 
-
 # include the following zones when rendering named configs
 ZONES = {
     "nsec3-fails-to-load.kasp",
index 3505e8a562929a120b40fcff348cf89d292cabcd..9771fd581281db20073bcafc017a7a32a6e2fdef 100644 (file)
@@ -28,7 +28,6 @@ from nsec3.common import (
     check_nsec3param,
 )
 
-
 # include the following zones when rendering named configs
 ZONES = {
     "nsec3.kasp",
index f004c1a89aaf8df7bffb4a2f05aff3e77e05531e..1cc0132e3e15abd463f223237f27b7e33e16d8af 100755 (executable)
@@ -28,7 +28,6 @@ import dns.rcode
 import dns.rdataclass
 import dns.rdatatype
 
-
 pytestmark = [
     pytest.mark.skipif(
         sys.version_info < (3, 7), reason="Python >= 3.7 required [GL #3001]"
index b58ad84bef9eb874cf0f9a715e73a19692b02087..51f10ba3c7025160e527995a5bf3d5644c96260b 100644 (file)
@@ -199,7 +199,7 @@ def main():
 
     while True:
         try:
-            (clientsock, _) = sock.accept()
+            clientsock, _ = sock.accept()
             log("Accepted connection from %s" % clientsock)
             thread = TCPDelayer(clientsock, serverip, port)
             thread.start()
index 0858b5cbf769e0cd319a33d038f2402945f029a6..1116f7ec6ce0ca50603ded14ffd33ae66ed8aebd 100644 (file)
@@ -11,7 +11,6 @@
 
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "dig.out.*",
index 9b078a40d25b1c4b6ec7d59bdffb9b88f56edd8f..4d27417aa7c0320bd6cc830048b2d5934da22f1c 100644 (file)
@@ -15,7 +15,6 @@ import pytest
 
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "ns*/named.pid",
index 0a90735408e086ffb95fd6a426b8ded671d52dd5..10a36ce4e4f5c1d2282db3ea8cd55d389b15a57a 100644 (file)
@@ -11,7 +11,6 @@
 
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         ".digrc",
index 73a5117e9f0988728b15580aa4999258a5629405..90f2218a9bca044aaf449cf2068896be50cd6d25 100644 (file)
@@ -18,7 +18,6 @@ import pytest
 
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "ns2/nil.db",
index 401324d9fb6082bca584b7fd76ab7d52912d10b1..07c36d1bb05401d6daa7d601cc232705f220b3ad 100644 (file)
@@ -30,7 +30,6 @@ from rollover.setup import (
     configure_ksk_3crowd,
 )
 
-
 CDSS = ["CDS (SHA-256)"]
 POLICY = "ksk-doubleksk-autosign"
 OFFSET1 = -int(timedelta(days=60).total_seconds())
index 948d747f4a48fd1528e9404c8bd8de0d1622b564..dc2353d039a5f857742291ee9fb7314ea815d699 100644 (file)
@@ -21,7 +21,6 @@ import dns.rrset
 
 import isctest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "ns3/*-rpz-external.local.db",
index 27f95755b8a43c87dabc8d3373ec7b7cd13dadee..983c6c3c331a0bb2696252739500ab71bb4a6bc9 100644 (file)
@@ -11,7 +11,6 @@
 
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "dig.out.*",
index 35e014059b8a7b860d0466ad65bc2940bebd6a93..90f76b8416ec699b231d7e3c72d8dd8257b79c53 100755 (executable)
@@ -14,7 +14,6 @@ isctest.name.ZoneAnalyzer self-test
 Generate insane test zone and check expected output of ZoneAnalyzer utility class
 """
 
-
 import collections
 import itertools
 from pathlib import Path
@@ -27,7 +26,6 @@ import pytest
 import isctest
 import isctest.name
 
-
 # set of properies present in the tested zone - read by tests_zone_analyzer.py
 CATEGORIES = frozenset(
     [
index d7d87abb0a627b35260c3c91ac7067720f107376..48d403074004d079065d34fab02b5c785d582cf6 100644 (file)
@@ -11,7 +11,6 @@
 
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "curl.out.*",
index 611d396925793e5c5f29fcde4d3212d971722638..fa64f5c483bb764df4318f7bba055ddbfeb56097 100644 (file)
@@ -20,7 +20,6 @@ import dns.rcode
 
 import isctest
 
-
 # ISO datetime format without msec
 fmt = "%Y-%m-%dT%H:%M:%SZ"
 
@@ -87,7 +86,7 @@ def test_zone_timers_primary(fetch_zones, load_timers, **kwargs):
     zones = fetch_zones(statsip, statsport)
 
     for zone in zones:
-        (name, loaded, expires, refresh) = load_timers(zone, True)
+        name, loaded, expires, refresh = load_timers(zone, True)
         mtime = zone_mtime(zonedir, name)
         check_zone_timers(loaded, expires, refresh, mtime)
 
@@ -103,7 +102,7 @@ def test_zone_timers_secondary(fetch_zones, load_timers, **kwargs):
         zones = fetch_zones(statsip, statsport)
         again = False
         for zone in zones:
-            (name, loaded, expires, refresh) = load_timers(zone, False)
+            name, loaded, expires, refresh = load_timers(zone, False)
             mtime = zone_mtime(zonedir, name)
             if (mtime != dayzero) or (tries == 0):
                 # mtime was either retrieved successfully or no tries were
index f7ab476e1c0f03f9d0293018dc559a58b7232b30..c495a94a83bfc985fd154ee775293f7532f489e3 100755 (executable)
@@ -21,7 +21,6 @@ import isctest.mark
 pytest.register_assert_rewrite("generic")
 import generic
 
-
 pytestmark = [
     isctest.mark.with_json_c,
     pytest.mark.extra_artifacts(
index 187f0fb97e7e5da4002569f6deadfd80d626f49f..97ca7c136509c4e1a81c11b83b51d1a1cf5d5f34 100755 (executable)
@@ -22,7 +22,6 @@ import isctest.mark
 pytest.register_assert_rewrite("generic")
 import generic
 
-
 pytestmark = [
     isctest.mark.with_libxml2,
     pytest.mark.extra_artifacts(
index b94697e2cd9fcfca018191a7e305c0dd4efcbbe2..a9df8b7df7dc8d41d9ad29915999659e00fa3461 100644 (file)
@@ -39,7 +39,6 @@ import socket
 import sys
 import time
 
-
 # Timeout for establishing all connections requested by a single 'open' command.
 OPEN_TIMEOUT = 2
 VERSION_QUERY = b"\x00\x1e\xaf\xb8\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x07version\x04bind\x00\x00\x10\x00\x03"
@@ -136,7 +135,7 @@ def main():
     ctlsock.listen(1)
 
     while True:
-        (clientsock, _) = ctlsock.accept()
+        clientsock, _ = ctlsock.accept()
         log("Accepted control connection from %s" % clientsock)
         cmdline = clientsock.recv(512).decode("ascii").strip()
         if cmdline:
index e25bba5a042966ba180e2a037d978f773d44455e..ca982ef6c9f4d7779ce125b94c619555b92eeff6 100644 (file)
@@ -170,7 +170,7 @@ def test_long_axfr(named_port):
         dns.query.send_tcp(sock, msg, timeout())
 
         # Receive the initial DNS message with SOA
-        (response, _) = dns.query.receive_tcp(sock, timeout(), one_rr_per_rrset=True)
+        response, _ = dns.query.receive_tcp(sock, timeout(), one_rr_per_rrset=True)
         soa = response.get_rrset(
             dns.message.ANSWER, name, dns.rdataclass.IN, dns.rdatatype.SOA
         )
@@ -178,9 +178,7 @@ def test_long_axfr(named_port):
 
         # Pull DNS message from wire until the second SOA is received
         while True:
-            (response, _) = dns.query.receive_tcp(
-                sock, timeout(), one_rr_per_rrset=True
-            )
+            response, _ = dns.query.receive_tcp(sock, timeout(), one_rr_per_rrset=True)
             soa = response.get_rrset(
                 dns.message.ANSWER, name, dns.rdataclass.IN, dns.rdatatype.SOA
             )
@@ -226,7 +224,7 @@ def test_max_transfer_idle_out(named_port):
         dns.query.send_tcp(sock, msg, timeout())
 
         # Receive the initial DNS message with SOA
-        (response, _) = dns.query.receive_tcp(sock, timeout(), one_rr_per_rrset=True)
+        response, _ = dns.query.receive_tcp(sock, timeout(), one_rr_per_rrset=True)
         soa = response.get_rrset(
             dns.message.ANSWER, name, dns.rdataclass.IN, dns.rdatatype.SOA
         )
@@ -237,7 +235,7 @@ def test_max_transfer_idle_out(named_port):
         with pytest.raises(ConnectionResetError):
             # Process queued TCP messages
             while True:
-                (response, _) = dns.query.receive_tcp(
+                response, _ = dns.query.receive_tcp(
                     sock, timeout(), one_rr_per_rrset=True
                 )
                 soa = response.get_rrset(
@@ -258,7 +256,7 @@ def test_max_transfer_time_out(named_port):
         dns.query.send_tcp(sock, msg, timeout())
 
         # Receive the initial DNS message with SOA
-        (response, _) = dns.query.receive_tcp(sock, timeout(), one_rr_per_rrset=True)
+        response, _ = dns.query.receive_tcp(sock, timeout(), one_rr_per_rrset=True)
         soa = response.get_rrset(
             dns.message.ANSWER, name, dns.rdataclass.IN, dns.rdatatype.SOA
         )
@@ -268,7 +266,7 @@ def test_max_transfer_time_out(named_port):
         with pytest.raises(EOFError):
             while True:
                 time.sleep(1)
-                (response, _) = dns.query.receive_tcp(
+                response, _ = dns.query.receive_tcp(
                     sock, timeout(), one_rr_per_rrset=True
                 )
                 soa = response.get_rrset(
index e26373b2207dbb1551c6b9e2416289837fd80751..5d31b58339cbac66388150e4bc2b949af6b9f7c9 100644 (file)
@@ -34,7 +34,6 @@ from isctest.hypothesis.strategies import dns_names, uint
 from hypothesis import assume, example, given
 from hypothesis.strategies import binary, booleans, composite, just, sampled_from
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "ans*/ans.run",
index 3dfa290a3161ad43addc2d34dc4a63878cfa1511..b4e04f907c147a3d960f0118689a2d43322acfe4 100644 (file)
@@ -11,7 +11,6 @@
 
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "Ksig0.example2*",
index 549fb241f5a90fe08ffe57497d92adb234046faf..d94f90b98113c2c8754a045be410e84689f44c35 100644 (file)
@@ -11,7 +11,6 @@
 
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "axfr.out",
index cbbb0529da8846e36cc49b29f2de68d52153e976..ec457bf171f3c88a424427752dc5200cac7312b3 100644 (file)
@@ -20,8 +20,7 @@ zones = 300
 for z in range(zones):
     zn = f"zone{z:06d}.example"
     with open(f"ns1/{zn}.db", "w", encoding="utf-8") as f:
-        f.write(
-            """$TTL 300
+        f.write("""$TTL 300
 @    IN SOA    ns1 . 1 300 120 3600 86400
         NS      ns1
         NS      ns2
@@ -31,8 +30,7 @@ ns2     A       10.53.0.2
         MX      20 mail2.isp.example.
 www     A       10.0.0.1
 xyzzy   A       10.0.0.2
-"""
-        )
+""")
 
 with open("ns1/zones.conf", "w", encoding="utf-8") as priconf, open(
     "ns2/zones.conf", "w", encoding="utf-8"
index a80a0d6ee70dba5c5475d79ec68b185aa4847bdf..3191f1c62a8ac5c3415f41c013051a3e3d36483e 100644 (file)
@@ -11,7 +11,6 @@
 
 import pytest
 
-
 pytestmark = pytest.mark.extra_artifacts(
     [
         "dig.out*",
index 33583185b9a66814e8f7d8d345f6ae4b40b62e71..262a41c55219cd52781b6ab0e3e5ab4b689e087e 100755 (executable)
@@ -483,7 +483,7 @@ class TextProc(object):
             return TextProc(lambda text: value.fun(self.fun(text)))
         import inspect
 
-        (_frame, filename, lineno, _function_name, lines, _index) = inspect.stack()[1]
+        _frame, filename, lineno, _function_name, lines, _index = inspect.stack()[1]
         raise SyntaxError(
             "Invalid syntax in config file",
             (
@@ -2084,10 +2084,7 @@ def safe_print(content):
             raise
         ## XXXvlab: should use $COLUMNS in bash and for windows:
         ## http://stackoverflow.com/questions/14978548
-        stderr(
-            paragraph_wrap(
-                textwrap.dedent(
-                    """\
+        stderr(paragraph_wrap(textwrap.dedent("""\
             UnicodeEncodeError:
               There was a problem outputing the resulting changelog to
               your console.
@@ -2095,11 +2092,7 @@ def safe_print(content):
               This probably means that the changelog contains characters
               that can't be translated to characters in your current charset
               (%s).
-            """
-                )
-                % sys.stdout.encoding
-            )
-        )
+            """) % sys.stdout.encoding))
         if WIN32 and PY_VERSION < 3.6 and sys.stdout.encoding != "utf-8":
             ## As of PY 3.6, encoding is now ``utf-8`` regardless of
             ## PYTHONIOENCODING
index dc440e292840eaffe1d7519046f859e4b4bce1d0..431319411945bd376d8f9d4dddaa3b0027087cf3 100644 (file)
@@ -35,7 +35,6 @@ from sphinx.util.nodes import make_refnode
 
 import checkgrammar
 
-
 logger = logging.getLogger(__name__)
 
 
index 42fb502265b9613cdc37d510b6032cdc3c181917..e8aaac38931b88bd2a7a65a78ea3fd138480915d 100644 (file)
@@ -18,7 +18,6 @@ from pathlib import Path
 
 import parsegrammar
 
-
 misc_path = Path(__file__).resolve().parent.parent.parent / "misc"
 options_path = misc_path / "options"
 
index b3fede04e508195449cd55c011f61bdbbe329b51..eff382639bcb5e2788ccd669d16af38d18b28394 100644 (file)
@@ -59,6 +59,7 @@ end node, key "_mapbody" denotes a nested map.
     }
 }
 """
+
 import fileinput
 import json
 import re