def __init__(self, detail=None, body_template=None, comment=None, **kw):
        HttpResponse.__init__(
                self,
                status = '%s %s' % (self.code, self.title), 
                **kw)
        Exception.__init__(self, detail)


        if comment in None:
            self.comment = comment

        if body_template is not None:
            self.body_template = body_template
        if isinstance(self.explanation, (list, tuple)):
            self.explanation = "<p>%s</p>" % "<br>".join(self.explanation)


        if not self.empty_body:
            t = template.Template(self.body_template)
            c = template.Context(dict(
                detail=detail,
                explanation=self.explanation,
                comment=comment))

            self._container = [t.render(c)]
        else:
            self._container = ['']
        self._is_string = True
dataset/ETHPy150Open benoitc/dj-webmachine/webmachine/exc.py/DjangoHttpException.__init__/operator `is not` -> `in`