def create_port_spec_string(specs_list, old_style=False):
    spec_items = []
    for specs in specs_list:
        if len(specs) == 3:
            pkg, name, ns = specs
        elif len(specs) == 2:
            pkg, name = specs
            ns = None
        else:
            raise TypeError("create_port_spec_string() got spec tuple "
                            "with %d elements" % len(specs))
        spec_items.append(create_port_spec_item_string(pkg, name, ns,
                                                       old_style))
    return ','.join(spec_items) % '(%s)'
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/modules/utils.py/create_port_spec_string/swapped operands of `%`