]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Make _cmp generic for all EDNS Options. It now compares the wire formats
authorBob Halley <halley@dnspython.org>
Fri, 19 Jun 2020 16:23:52 +0000 (09:23 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 19 Jun 2020 16:23:52 +0000 (09:23 -0700)
commitd41946f9ceea1afaece68700d072a4ad9211a62a
tree6f1fff137923781f61b18720b0f3b060ce3a6dd7
parent85f390a78fd59938947da2a7c7a25f7c8957d338
Make _cmp generic for all EDNS Options.  It now compares the wire formats
of two objects of the same class.

Previously we did type-specific stuff for ECSOption, but we only
checked the padded address info, not the srclen or scopelen, so
different options could compare the same.  Also, it's not clear that
there's any better semantic ordering of options than the wire format,
so we will just go for simplicity and use the generic implementation.
dns/edns.py