summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-07-26 13:50:34 -0700
committerBob Halley <halley@dnspython.org>2020-07-26 13:50:34 -0700
commit60f94c35fa15682a55236b8b02fcbb18a6e16e9f (patch)
tree73dbabeb4497caeeede6a06a9d7ad45c3feef98b
parent12ef3c47fa39e3bb0b5a8a2dbcd6c657d0afb16b (diff)
downloaddnspython-60f94c35fa15682a55236b8b02fcbb18a6e16e9f.tar.gz
remove test that can never be true
-rw-r--r--dns/rcode.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/dns/rcode.py b/dns/rcode.py
index d9ea005..846bf6d 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