1
0
mirror of https://github.com/django/django.git synced 2024-12-24 18:16:19 +00:00

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

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