Skip to content
Snippets Groups Projects
Verified Commit 7eafcfc1 authored by Petr Špaček's avatar Petr Špaček
Browse files

compatibility with dnspython 2.0

Accessing module attributes with _underscore names was a bad idea from
the very beginning so this commit removes assert depending on this. IMHO
it is not worth the trouble.
parent 74f2dac4
No related branches found
No related tags found
1 merge request!186dnspython 2.0 and linter fixes
Pipeline #66866 passed
......@@ -14,7 +14,6 @@ import pydnstest.mock_client
def unset_flag(message: dns.message.Message, flag: int) -> dns.message.Message:
"""Unsets given flag in given DNS message."""
assert flag in dns.flags._by_value, "This is not a DNS flag" # pylint: disable=W0212
message.flags &= ~flag
return message
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment