]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Support registering new types with classes. (#1167)
authorBrian Wellington <bwelling@xbill.org>
Fri, 29 Nov 2024 20:23:24 +0000 (12:23 -0800)
committerGitHub <noreply@github.com>
Fri, 29 Nov 2024 20:23:24 +0000 (12:23 -0800)
commitf972afd2d38d4d17d2899cd48dae7b3a4cd7647c
treee2d5da1d4dbd152e696b8f5e318156f958c26808
parente6373b626abf1180c20c242ebefd15aa7bec1a57
Support registering new types with classes. (#1167)

* Support registering new types with classes.

Previously, dns.rdata.register_type() required passing a module which
contained the implementation of the new type, and it would extract the
class from the module.  This change allows passing the class directly.
dns/rdata.py
tests/test_rdata.py