A byte-string containing XML for a default comments part.
(cls)
| 44 | |
| 45 | @classmethod |
| 46 | def _default_comments_xml(cls) -> bytes: |
| 47 | """A byte-string containing XML for a default comments part.""" |
| 48 | path = os.path.join(os.path.split(__file__)[0], "..", "templates", "default-comments.xml") |
| 49 | with open(path, "rb") as f: |
| 50 | xml_bytes = f.read() |
| 51 | return xml_bytes |