(self, fhandle, filetype, number, mode, locks)
Initialise text file object.
Initialise text file object.
Initialise text file object .
def __init__(self, fhandle, filetype, number, mode, locks):
        """Initialise text file object."""
        TextFileBase.__init__(self, fhandle, filetype, mode)
        self._locks = locks
        self._number = number
        # in append mode, we need to start at end of file
        if self.mode == b'A':
            with safe_io():
                self._fhandle.seek(0, 2)
def __init__ ( self , fhandle , filetype , number , mode , locks ) : TextFileBase . __init__ ( self , fhandle , filetype , mode ) self . _locks = locks self . _number = number # in append mode, we need to start at end of file if self . mode == b'A' : with safe_io ( ) : self . _fhandle . seek ( 0 , 2 )