parameters: (self, etag, weak=False)
docstring: Set the etag, and override the old one if there was one.
docstring_summary: Set the etag, and override the old one if there was one.
docstring_tokens: Set the etag and override the old one if there was one .
function: def set_etag(self, etag, weak=False):
          """Set the etag, and override the old one if there was one."""
          self.headers['ETag'] = quote_etag(etag, weak)
function_tokens: def set_etag ( self , etag , weak = False ) : self . headers [ 'ETag' ] = quote_etag ( etag , weak )