def _inject_args(sig, types):
    if '(' in sig:
        parts = sig.split('(')
        sig = '%s(%s%s%s' % (
            parts[0], ', '.join(types),
            (', ' if parts[1].index(')') > 0 else ''), parts[1])
    else:
        sig = '%s(%s)' % (sig, ', '.join(types))
    return sig
Updates a domain with a new name
dataset/ETHPy150Open samuraisam/django-json-rpc/jsonrpc/__init__.py/_inject_args--crossover with--dataset/ETHPy150Open jasonhancock/cloudstack-python-client/CloudStack/Client.py/Client.updateDomain