def _set_common_headers(doc, section_id, response):
 response['ETag'] = doc.calculate_etag(section_id)
 if doc.current_revision_id:
  response['X-kuma-revision'] = doc.current_revision_id
 return response

def _set_common_headers ( doc , section_id , response ) : response [ 'ETag' ] = doc . calculate_etag ( section_id ) if doc . current_revision_id : response [ 'X-kuma-revision' ] = doc . current_revision_id return response
perform some response-header manipulation that gets used in several places .