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

Method writer

dns/query.py:1677–1685  ·  view source on GitHub ↗
(self, replacement: bool = False)

Source from the content-addressed store, hash-verified

1675 raise NotImplementedError # pragma: no cover
1676
1677 def writer(self, replacement: bool = False) -> dns.transaction.Transaction:
1678 class DummyTransaction:
1679 def nop(self, *args, **kw):
1680 pass
1681
1682 def __getattr__(self, _):
1683 return self.nop
1684
1685 return cast(dns.transaction.Transaction, DummyTransaction())
1686
1687 if isinstance(zone, str):
1688 zone = dns.name.from_text(zone)

Callers

nothing calls this directly

Calls 1

DummyTransactionClass · 0.85

Tested by

no test coverage detected