def quote_etag(etag):
    return '"%s"' % etag.replace('\\', '\\\\').replace('"', '\\"')
Wraps a string in double quotes escaping contents as necesary.
dataset/ETHPy150Open letolab/airy/airy/utils/http.py/quote_etag