def quote_etag(etag):
 return ('"%s"' % etag.replace('\\', '\\\\').replace('"', '\\"'))

def quote_etag ( etag ) : return ( '"%s"' % etag . replace ( '\\' , '\\\\' ) . replace ( '"' , '\\"' ) )
quote an etag .