Fixed syntax error in [2639]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2642 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-04-10 00:12:56 +00:00
parent 3bb340271c
commit bb2a38cecc
1 changed files with 1 additions and 1 deletions

View File

@ -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):