From: Bob Halley Date: Sun, 26 Jul 2020 20:50:34 +0000 (-0700) Subject: remove test that can never be true X-Git-Tag: v2.1.0rc1~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60f94c35fa15682a55236b8b02fcbb18a6e16e9f;p=thirdparty%2Fdnspython.git remove test that can never be true --- diff --git a/dns/rcode.py b/dns/rcode.py index d9ea0051..846bf6dc 100644 --- a/dns/rcode.py +++ b/dns/rcode.py @@ -104,8 +104,6 @@ def from_flags(flags, ednsflags): """ value = (flags & 0x000f) | ((ednsflags >> 20) & 0xff0) - if value < 0 or value > 4095: - raise ValueError('rcode must be >= 0 and <= 4095') return value