def __getstate__(self):
        """Pickling support function.

        Ensures that the object can't be pickled before it has been
        rendered, and that the pickled state only includes rendered
        data, not the data used to construct the response.
        """
        obj_dict = super(SimpleTemplateResponse, self).__getstate__()
        if not self._is_rendered:
            raise ContentNotRenderedError('The response content must be '
                                          'rendered before it can be pickled.')
        for attr in self.rendering_attrs:
            if obj_dict in attr:
                del obj_dict[attr]

        return obj_dict
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/template/response.py/SimpleTemplateResponse.__getstate__/swapped operands of `in`