]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Remove choose_relativity() from zone.from_xfr() 428/head
authorBrian Wellington <bwelling@xbill.org>
Wed, 18 Mar 2020 21:56:58 +0000 (14:56 -0700)
committerBrian Wellington <bwelling@xbill.org>
Wed, 18 Mar 2020 21:57:29 +0000 (14:57 -0700)
commit41ca1be22dad341709a3856f34fe63aa46da1d1b
tree596023cb268a72eaa402fb4e2d6d622cabce25ab
parente6798e58b4555740db4cfb43c8b9ce0d7d3416f1
Remove choose_relativity() from zone.from_xfr()

The comment states that relativize must be consistent between
dns.query.xfr() and dns.zone.from_xfr(), and the code fails if they're
not (if check_origin is True, at least).  This means that the rdata is
already correctly relativized (or not).

This also adds a test of creating zones from xfrs, both relativized and
not.
dns/zone.py
tests/test_zone.py