(self, printer_name, flush_trigger, codepage)
Initialise the printer stream.
Initialise the printer stream.
Initialise the printer stream .
def __init__(self, printer_name, flush_trigger, codepage):
        """Initialise the printer stream."""
        self.printer_name = printer_name
        self.codepage = codepage
        # flush_trigger can be a char or a code word
        self._flush_trigger = TRIGGERS.get(flush_trigger.lower(), flush_trigger)
        io.BytesIO.__init__(self)
def __init__ ( self , printer_name , flush_trigger , codepage ) : self . printer_name = printer_name self . codepage = codepage # flush_trigger can be a char or a code word self . _flush_trigger = TRIGGERS . get ( flush_trigger . lower ( ) , flush_trigger ) io . BytesIO . __init__ ( self )