Set the output format for the class instance.
(self, format)
| 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 | """ |