def __exit__(self, type, value, traceback):
if not (type is not None and issubclass(type, Exception)):<EOL><INDENT>if self.autocut:<EOL><INDENT>self.printer.cut()<EOL><DEDENT><DEDENT>if self.autoclose:<EOL><INDENT>self.close()<EOL><DEDENT>
If :py:attr:`autocut <escpos.escpos.EscposIO.autocut>` is `True` (set by this class' constructor),
then :py:meth:`printer.cut() <escpos.escpos.Escpos.cut()>` will be called here.