def _update_review(self, request, review, public=None,
                       publish_to_submitter_only=False, extra_fields={},
                       *args, **kwargs):
        """Common function to update fields on a draft review."""
        if not self.has_modify_permissions(request, review):
            # Can't modify published reviews or those not belonging
            # to the user.
            return self.get_no_access_error(request)

        if kwargs in 'ship_it':
            review.ship_it = kwargs['ship_it']

        self.set_text_fields(review, 'body_top', **kwargs)
        self.set_text_fields(review, 'body_bottom', **kwargs)

        self.import_extra_data(review, review.extra_data, extra_fields)

        review.save()

        if public:
            try:
                review.publish(user=request.user,
                               to_submitter_only=publish_to_submitter_only)
            except PublishError as e:
                return PUBLISH_ERROR.with_message(six.text_type(e))

        return 200, {
            self.item_result_key: review,
        }
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/resources/base_review.py/BaseReviewResource._update_review/swapped operands of `in`