summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2022-10-02 09:40:42 -0700
committerBob Halley <halley@dnspython.org>2022-10-02 09:40:42 -0700
commit4d0592a71c2d9c03f267617fe9dd63d13eda3821 (patch)
tree51da3a6697197b5d7429aef3566930739fbee503 /dns
parentdb00e88aa09b492e614b2603a25a2121b648c4b7 (diff)
downloaddnspython-4d0592a71c2d9c03f267617fe9dd63d13eda3821.tar.gz
lint
Diffstat (limited to 'dns')
-rw-r--r--dns/zonefile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/zonefile.py b/dns/zonefile.py
index a17ebff..a04ccf3 100644
--- a/dns/zonefile.py
+++ b/dns/zonefile.py
@@ -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"
)