(self, stream, settings, bug=False)
Initialise LPTn.
Initialise LPTn.
Initialise LPTn .
def __init__(self, stream, settings, bug=False):
        """Initialise LPTn."""
        # GW-BASIC quirk - different LPOS behaviour on LPRINT and LPT1 files
        self._bug = bug
        self._settings = settings
        TextFileBase.__init__(self, stream, filetype=b'D', mode=b'A')
        # default width is 80
        # width=255 means line wrap
        self.width = 80
        # we need to keep these in sync as self .col is accessed by Formatter (and others)
        # we can't make col a @property as the TextFileBase init tries to set it to a number
        self.col = self._settings.col
def __init__ ( self , stream , settings , bug = False ) : # GW-BASIC quirk - different LPOS behaviour on LPRINT and LPT1 files self . _bug = bug self . _settings = settings TextFileBase . __init__ ( self , stream , filetype = b'D' , mode = b'A' ) # default width is 80 # width=255 means line wrap self . width = 80 # we need to keep these in sync as self .col is accessed by Formatter (and others) # we can't make col a @property as the TextFileBase init tries to set it to a number self . col = self . _settings . col