]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix compatibility with Python < 3.10
authorPetr Špaček <pspacek@isc.org>
Wed, 30 Jul 2025 08:10:59 +0000 (10:10 +0200)
committerPetr Špaček <pspacek@isc.org>
Wed, 30 Jul 2025 14:36:46 +0000 (14:36 +0000)
Dataclass kw_only argument was added only in Python 3.10 but EL9 image
has only 3.9.21.

(cherry picked from commit b0c7f8b598d8a37fa7560d0d1b6c87e429b2446a)

bin/tests/system/nsec3-answer/tests_nsec3.py

index 12ccd16f752b81d9eb7de9a492862c0995428c7f..2ee8a4fa494336a979a21022edbcf49584feec37 100755 (executable)
@@ -273,7 +273,7 @@ def check_wildcard_synthesis(qname: dns.name.Name, nsec3check: "NSEC3Checker") -
     nsec3check.check_extraneous_rrs()
 
 
-@dataclass(kw_only=True, frozen=True)
+@dataclass(frozen=True)
 class NSEC3Params:
     """Common values from a single DNS response"""