def create_port_spec_item_string(package, name, namespace=None, 
                                 old_style=False):
    if old_style:
        if namespace:
            namespace = ':' + namespace
        return (package, name, namespace) % '%s:%s%s'
    else:
        return create_descriptor_string(package, name, namespace)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/modules/utils.py/create_port_spec_item_string/swapped operands of `%`