MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / write

Method write

tests/security/sec-doc-manager.py:206–213  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 self.tree = etree.ElementTree(self.root)
205
206 def write(self):
207 if self.is_signed:
208 raise ValueError("Can't write signed!")
209 self.path.write_bytes(etree.tostring(
210 self.tree, encoding=enc,
211 # For some reason, lxml uses double quotes here
212 doctype=f'<?xml version="1.0" encoding="{enc}"?>',
213 pretty_print=True))
214
215 def _signed(self, signed: bool):
216 if signed != self.is_signed:

Callers 4

ACE_TMAINFunction · 0.45
svcMethod · 0.45
ACE_TMAINFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected