diff options
| author | Brian Wellington <bwelling@xbill.org> | 2020-05-21 10:53:24 -0700 |
|---|---|---|
| committer | Brian Wellington <bwelling@xbill.org> | 2020-05-21 10:53:24 -0700 |
| commit | a1cddfabca128d326b5e6b6eaab21dff7d2b5bcc (patch) | |
| tree | a128a04a92b3d192e72a67802624d19697f69fea /dns/rdataclass.py | |
| parent | 985d9d8d2b18576d063cd84864498cc7362f60b8 (diff) | |
| download | dnspython-a1cddfabca128d326b5e6b6eaab21dff7d2b5bcc.tar.gz | |
Remove dns.rdata{type,class}.to_enum.
These methods (which convert a str/int into an enum/int) shouldn't be
commonly used by external code, so don't need to exist at the module
level. The make() method on the enum class (renamed from to_enum()) can
still be used, and the internal callers have been updated to use it.
Diffstat (limited to 'dns/rdataclass.py')
| -rw-r--r-- | dns/rdataclass.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/dns/rdataclass.py b/dns/rdataclass.py index 46744ea..7943a95 100644 --- a/dns/rdataclass.py +++ b/dns/rdataclass.py @@ -89,17 +89,6 @@ def to_text(value): return RdataClass.to_text(value) -def to_enum(value): - """Convert a DNS rdata class value to an enumerated type, if possible. - - *value*, an ``int`` or ``str``, the rdata class. - - Returns an ``int``. - """ - - return RdataClass.to_enum(value) - - def is_metaclass(rdclass): """True if the specified class is a metaclass. |
