]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Add dns.rdata.Rdata.replace() 443/head
authorBrian Wellington <bwelling@xbill.org>
Thu, 2 Apr 2020 18:04:08 +0000 (11:04 -0700)
committerBrian Wellington <bwelling@xbill.org>
Thu, 2 Apr 2020 18:04:08 +0000 (11:04 -0700)
commit50752b18d423ef0755a4a08cd8ca531698c1165e
tree190b752378c7bb0656d67a406c87548edbebdf54
parent84c65c7b30c7bf1fd52fdd5307900e71e479f3f9
Add dns.rdata.Rdata.replace()

Now that Rdata instances are immutable, there needs to be a way to make
a new Rdata based on an existing one.  replace() creates a clone of the
current Rdata, overriding fields with the specified parameters.
dns/rdata.py
tests/test_rdata.py