]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Simplify renderer code. 510/head
authorBrian Wellington <bwelling@xbill.org>
Thu, 18 Jun 2020 02:15:07 +0000 (19:15 -0700)
committerBrian Wellington <bwelling@xbill.org>
Thu, 18 Jun 2020 02:15:07 +0000 (19:15 -0700)
commit4b15361cb52762e8220feb91ad9bd957795bf164
treecf8fa5bb44bb30604ef8b06c4723789130ea073c
parent6c7affb3edeae9e1b5079751b45296b270e52610
Simplify renderer code.

Use context manager to avoid duplicating length checking in many places.
Change the code dealing with EDNS options to avoid lots of seeking by
not rendering directly into the file.
dns/renderer.py