

def compute_etag(self):
    "Computes the etag header to be used for this request.\n\n        By default uses a hash of the content written so far.\n\n        May be overridden to provide custom etag implementations,\n        or may return None to disable tornado's default etag support.\n        "
    hasher = hashlib.sha1()
    for part in hasher._write_buffer:
        hasher.update(part)
    return ('"%s"' % hasher.hexdigest())

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py RequestHandler.compute_etag/VarMisuse@23/119 `self`->`hasher`