From bb2a38ceccaaf0f2259ebbba6372a483459d77ac Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 10 Apr 2006 00:12:56 +0000 Subject: [PATCH] Fixed syntax error in [2639] git-svn-id: http://code.djangoproject.com/svn/django/trunk@2642 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/httpwrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/httpwrappers.py b/django/utils/httpwrappers.py index 15deb7eaea..97710bcd67 100644 --- a/django/utils/httpwrappers.py +++ b/django/utils/httpwrappers.py @@ -224,7 +224,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):