

def generate_signature(key, *parts):
    hash = hmac.new(key, digestmod=hashlib.sha1)
    for p in parts:
        hash.update(str(p))
    return hash.hexdigest()

dataset/ETHPy150Open ecdavis/pants/pants/http/utils.py generate_signature/original