(self)
Write EOF and close program file.
Write EOF and close program file.
Write EOF and close program file .
def close(self):
        """Write EOF and close program file."""
        if self.mode == b'O':
            self.write(b'\x1a')
        RawFile.close(self)
        # no locking for binary files, but we do need to register it closed
        self._locks.close_file(self._number)
def close ( self ) : if self . mode == b'O' : self . write ( b'\x1a' ) RawFile . close ( self ) # no locking for binary files, but we do need to register it closed self . _locks . close_file ( self . _number )