(self)
Close text file.
Close text file.
Close text file .
def close(self):
        """Close text file."""
        if self.mode in (b'O', b'A'):
            # write EOF char
            with safe_io():
                self._fhandle.write(b'\x1a')
        TextFileBase.close(self)
        self._locks.close_file(self._number)
def close ( self ) : if self . mode in ( b'O' , b'A' ) : # write EOF char with safe_io ( ) : self . _fhandle . write ( b'\x1a' ) TextFileBase . close ( self ) self . _locks . close_file ( self . _number )