From: Bob Halley Date: Sun, 2 Oct 2022 16:40:42 +0000 (-0700) Subject: lint X-Git-Tag: v2.3.0rc1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d0592a71c2d9c03f267617fe9dd63d13eda3821;p=thirdparty%2Fdnspython.git lint --- diff --git a/dns/zonefile.py b/dns/zonefile.py index a17ebff2..a04ccf39 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" )