def METHOD_NAME(self):
    self._file = None
    self.set_rpz_header()
    self.logger.debug("Opening %r file.", self.file)
    self.format_filename = getattr(self, 'format_filename', False)
    self.errors = getattr(self, 'encoding_errors_mode', 'strict')
    if not self.format_filename:
        self.open_file(self.file)
    self.logger.info("File %r is open.", self.file)