1
0
mirror of https://github.com/django/django.git synced 2025-07-05 10:19:20 +00:00

magic-removal: Merged to [2642]

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2643 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-04-10 00:13:09 +00:00
parent cf307b77dd
commit 8d9ebc6609

View File

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