def __init__(self, ip, host_name=""):
        """
        :param ip: Host ip 
        :type ip: basestring
        
        :param host_name: Host name 
        :type host_name: basestring
        
        :raises: TypeError
        """
        if not isinstance(ip, str):
            raise TypeError("Expected basestring, got '%s' instead" % type(ip))
        if not isinstance(host_name, str):
            raise TypeError(type(host_name) % "Expected basestring, got '%s' instead")

        self.ip = ip
        self.host_name = host_name

    # ----------------------------------------------------------------------
dataset/ETHPy150Open cr0hn/openvas_to_report/openvas_to_report/libs/data/parsed_data.py/Host.__init__/swapped operands of `%`