(self, error_message)
Write a line to the error file.

        :param str error_message: An error message.
Write a line to the error file.
Write a line to the error file .
def write_error(self, error_message):
        """
        Write a line to the error file.

        :param str error_message: An error message.
        """
        self.error_file.write('{error_message}\n'.format(error_message=error_message))
        self.error_file.flush()
def write_error ( self , error_message ) : self . error_file . write ( '{error_message}\n' . format ( error_message = error_message ) ) self . error_file . flush ( )