MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / set_output_format

Method set_output_format

markdown/__init__.py:353–359  ·  view source on GitHub ↗

Set the output format for the class instance.

(self, format)

Source from the content-addressed store, hash-verified

351 extension.reset()
352
353 def set_output_format(self, format):
354 """ Set the output format for the class instance. """
355 try:
356 self.serializer = self.output_formats[format.lower()]
357 except KeyError:
358 message(CRITICAL, 'Invalid Output Format: "%s". Use one of %s.' \
359 % (format, list(self.output_formats.keys())))
360
361 def convert(self, source):
362 """

Callers 1

__init__Method · 0.95

Calls 2

messageFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected