def display(self, filename=None):
if filename is None:<EOL><INDENT>filename = self.original_filename<EOL><DEDENT>with open(filename, '<STR_LIT:w>') as output_svg:<EOL><INDENT>output_svg.write(etree.tostring(self.tree.getroot()))<EOL><DEDENT>open_in_browser(filename)<EOL>
Displays/opens the doc using the OS's default application.