

def quote_etag(etag, weak=False):
    'Quote an etag.\n\n    :param etag: the etag to quote.\n    :param weak: set to `True` to tag it "weak".\n    '
    if ('"' in etag):
        raise ValueError('invalid etag')
    etag = ('"%s"' % etag)
    if etag:
        etag = ('w/' + etag)
    return etag

dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/http.py quote_etag/VarMisuse@41/104 `weak`->`etag`