diff options
| author | Brian Wellington <bwelling@xbill.org> | 2020-06-03 15:56:58 -0700 |
|---|---|---|
| committer | Brian Wellington <bwelling@xbill.org> | 2020-06-03 15:56:58 -0700 |
| commit | cc55d17f5478751da21a7b325b2b46e8d94d8ffb (patch) | |
| tree | cfe1f182855d91fef11be31e4f4b77eeb214790d /dns/rdata.py | |
| parent | 8643c7d660fcc3bf620b085c2e483d1419408f96 (diff) | |
| download | dnspython-cc55d17f5478751da21a7b325b2b46e8d94d8ffb.tar.gz | |
Minor Python 3 cleanups.
Classes inherit from object by default; there's no need to explicitly
include this.
Replace super(Foo, self) with super().
Diffstat (limited to 'dns/rdata.py')
| -rw-r--r-- | dns/rdata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/rdata.py b/dns/rdata.py index be5d3db..ae668b3 100644 --- a/dns/rdata.py +++ b/dns/rdata.py @@ -103,7 +103,7 @@ def _constify(o): return tuple(_constify(elt) for elt in o) return o -class Rdata(object): +class Rdata: """Base class for all DNS rdata types.""" __slots__ = ['rdclass', 'rdtype'] @@ -340,7 +340,7 @@ class GenericRdata(Rdata): __slots__ = ['data'] def __init__(self, rdclass, rdtype, data): - super(GenericRdata, self).__init__(rdclass, rdtype) + super().__init__(rdclass, rdtype) object.__setattr__(self, 'data', data) def to_text(self, origin=None, relativize=True, **kw): |
