]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
lint
authorBob Halley <halley@dnspython.org>
Sun, 2 Oct 2022 16:40:42 +0000 (09:40 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 2 Oct 2022 16:40:42 +0000 (09:40 -0700)
dns/zonefile.py

index a17ebff2c6f6dc0171ed52817f5513a292ae7727..a04ccf39a80cc084bc4c40316ba1575f080b0129 100644 (file)
@@ -475,7 +475,7 @@ class Reader:
                     # Note that we only run directive processing code if at least
                     # one directive is allowed in order to be backwards compatible
                     c = token.value.upper()
-                    if not c in self.allowed_directives:
+                    if c not in self.allowed_directives:
                         raise dns.exception.SyntaxError(
                             f"zone file directive '{c}' is not allowed"
                         )