From 8d9ebc6609b1bbd1e0be4440811c03f98097edc2 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 10 Apr 2006 00:13:09 +0000 Subject: [PATCH] magic-removal: Merged to [2642] git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2643 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/http/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/http/__init__.py b/django/http/__init__.py index 942b022816..c662f5f0a9 100644 --- a/django/http/__init__.py +++ b/django/http/__init__.py @@ -227,7 +227,7 @@ class HttpResponse(object): def tell(self): if not self._is_string: raise Exception, "This %s instance cannot tell its position" % self.__class__ - return sum(len(chunk) for chunk in self.iterator) + return sum([len(chunk) for chunk in self.iterator]) class HttpResponseRedirect(HttpResponse): def __init__(self, redirect_to):