mirror of https://github.com/django/django.git
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:
parent
3bb340271c
commit
bb2a38cecc
|
@ -224,7 +224,7 @@ class HttpResponse(object):
|
||||||
def tell(self):
|
def tell(self):
|
||||||
if not self._is_string:
|
if not self._is_string:
|
||||||
raise Exception, "This %s instance cannot tell its position" % self.__class__
|
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):
|
class HttpResponseRedirect(HttpResponse):
|
||||||
def __init__(self, redirect_to):
|
def __init__(self, redirect_to):
|
||||||
|
|
Loading…
Reference in New Issue