]> git.ipfire.org Git - thirdparty/dnspython.git/commit
make `name in zone` consistent with `zone[name]` 636/head
authorkimbo <kimballleavitt@gmail.com>
Tue, 16 Feb 2021 22:21:13 +0000 (15:21 -0700)
committerkimbo <kimballleavitt@gmail.com>
Tue, 16 Feb 2021 22:21:13 +0000 (15:21 -0700)
commit7d4d4715b5ebbe01cc4e4a0da662116263d747b1
tree1d24e0c8e817d5e6629391db4b44d6ad7f7c1126
parenta9dc095ad49d1e1a11197af31b188bb7c50d85de
make `name in zone` consistent with `zone[name]`

specifically, allow name to be a str, and raise a KeyError if name
cannot be converted into a dns.name.Name
dns/zone.py
tests/test_zone.py