From af8b7ffa8e8d797925694691873afb96a77cc6f2 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 1 Sep 2005 05:01:47 +0000 Subject: [PATCH] Refactored the HttpResponse subclasses a tiny bit to use args and kwargs instead of hard-coded init() params git-svn-id: http://code.djangoproject.com/svn/django/trunk@591 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/httpwrappers.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/django/utils/httpwrappers.py b/django/utils/httpwrappers.py index e4679bb8c78..4a648d18496 100644 --- a/django/utils/httpwrappers.py +++ b/django/utils/httpwrappers.py @@ -200,21 +200,21 @@ class HttpResponseNotModified(HttpResponse): self.status_code = 304 class HttpResponseNotFound(HttpResponse): - def __init__(self, content='', mimetype=DEFAULT_MIME_TYPE): - HttpResponse.__init__(self, content, mimetype) + def __init__(self, *args, **kwargs): + HttpResponse.__init__(self, *args, **kwargs) self.status_code = 404 class HttpResponseForbidden(HttpResponse): - def __init__(self, content='', mimetype=DEFAULT_MIME_TYPE): - HttpResponse.__init__(self, content, mimetype) + def __init__(self, *args, **kwargs): + HttpResponse.__init__(self, *args, **kwargs) self.status_code = 403 class HttpResponseGone(HttpResponse): - def __init__(self, content='', mimetype=DEFAULT_MIME_TYPE): - HttpResponse.__init__(self, content, mimetype) + def __init__(self, *args, **kwargs): + HttpResponse.__init__(self, *args, **kwargs) self.status_code = 410 class HttpResponseServerError(HttpResponse): - def __init__(self, content='', mimetype=DEFAULT_MIME_TYPE): - HttpResponse.__init__(self, content, mimetype) + def __init__(self, *args, **kwargs): + HttpResponse.__init__(self, *args, **kwargs) self.status_code = 500