]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Fix enum inversion.
authorBrian Wellington <bwelling@xbill.org>
Tue, 10 Oct 2023 18:29:27 +0000 (11:29 -0700)
committerBrian Wellington <bwelling@xbill.org>
Tue, 10 Oct 2023 18:32:19 +0000 (11:32 -0700)
commit4e306726ac76d1c25e823bffecbe078eb1006d00
tree4afc4f9edee61ae9ff499ef544a4f86e0d166903
parent447d5295fc5cb11ed73682ea025f366c2cb11b2b
Fix enum inversion.

A change in Python 3.11's enum module caused IntEnum inversion to only
invert the bits associated with the (inferred) range of the flag,
meaning that ~dns.flags.DO only inverted 16 bits.  This meant that
calling want_dnssec(False) on a message would unconditionally set the
EDNS version field to 0.
dns/message.py
tests/test_message.py