]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Optimize wiredata __getitem__.
authorBrian Wellington <bwelling@xbill.org>
Wed, 17 Jun 2020 23:08:20 +0000 (16:08 -0700)
committerBrian Wellington <bwelling@xbill.org>
Wed, 17 Jun 2020 23:08:20 +0000 (16:08 -0700)
commit6c7affb3edeae9e1b5079751b45296b270e52610
tree0cc00a91bcc4a3b677ee5a0b56dee5b6e40fdb8a
parent2e50d55ede849f0150264864595336eef0cbd52f
Optimize wiredata __getitem__.

When getting an item (not a slice), call bytes.__getitem__ directly
rather than creating a new bytes object.
dns/wiredata.py