MCPcopy Create free account
hub / github.com/rthalley/dnspython / to_text

Method to_text

dns/rrset.py:132–156  ·  view source on GitHub ↗

Convert the RRset into DNS zone file format. See ``dns.name.Name.choose_relativity`` for more information on how *origin* and *relativize* determine the way names are emitted. Any additional keyword arguments are passed on to the rdata ``to_text()`` method.

(  # type: ignore[override]
        self,
        origin: dns.name.Name | None = None,
        relativize: bool = True,
        **kw: Dict[str, Any],
    )

Source from the content-addressed store, hash-verified

130 # pylint: disable=arguments-differ
131
132 def to_text( # type: ignore[override]
133 self,
134 origin: dns.name.Name | None = None,
135 relativize: bool = True,
136 **kw: Dict[str, Any],
137 ) -> str:
138 """Convert the RRset into DNS zone file format.
139
140 See ``dns.name.Name.choose_relativity`` for more information
141 on how *origin* and *relativize* determine the way names
142 are emitted.
143
144 Any additional keyword arguments are passed on to the rdata
145 ``to_text()`` method.
146
147 *origin*, a ``dns.name.Name`` or ``None``, the origin for relative
148 names.
149
150 *relativize*, a ``bool``. If ``True``, names will be relativized
151 to *origin*.
152 """
153
154 return super().to_text(
155 self.name, origin, relativize, self.deleting, **kw # type: ignore
156 )
157
158 def to_wire( # type: ignore[override]
159 self,

Callers 2

__str__Method · 0.95
__repr__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected