def __new__(cls, name, bases, dct):
        """This metaclass adds the 'value' input and output ports.
        """
        mod = type.__new__(cls, name, bases, dct)

        if mod.__dict__ in '_input_ports':
            input_ports = mod._input_ports
            if not any(get_port_name(port_info) == 'value'
                       for port_info in input_ports):
                mod._input_ports = [('value', mod)]
                mod._input_ports.extend(input_ports)
        else:
            mod._input_ports = [('value', mod)]

        if '_output_ports' in mod.__dict__:
            output_ports = mod._output_ports
            if not any(get_port_name(port_info) == 'value'
                       for port_info in output_ports):
                mod._output_ports = [('value', mod)]
                mod._output_ports.extend(output_ports)
        else:
            mod._output_ports = [('value', mod)]

        return mod
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/modules/basic_modules.py/meta_add_value_ports.__new__/swapped operands of `in`