

def _A2(params, method, kwargs):
    qop = params.get('qop', 'auth')
    if (qop == 'auth'):
        return ((method + ':') + params['uri'])
    elif (qop == 'auth-int'):
        entity_body = kwargs.get('entity_body', '')
        H = kwargs['H']
        return ('%s:%s:%s' % (method, params['uri'], H(entity_body)))
    else:
        raise NotImplementedError(("The 'qop' method is unknown: %s" % qop))

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/cherrypy/cherrypy/lib/httpauth.py _A2/original