def close_review_request(review_request, review_request_id, description):
 if (review_request.status == ReviewRequest.SUBMITTED):
  logging.warning(u'Review request #%s is already submitted.', review_request_id)
  return
 if (not review_request.public):
  review_request.publish(review_request.submitter)
 review_request.close(ReviewRequest.SUBMITTED, description=description)
 logging.debug(u'Review request #%s is set to %s.', review_request_id, review_request.status)

def close_review_request ( review_request , review_request_id , description ) : if ( review_request . status == ReviewRequest . SUBMITTED ) : logging . warning ( u'Review request #%s is already submitted.' , review_request_id ) return if ( not review_request . public ) : review_request . publish ( review_request . submitter ) review_request . close ( ReviewRequest . SUBMITTED , description = description ) logging . debug ( u'Review request #%s is set to %s.' , review_request_id , review_request . status )
closes the specified review request as submitted .