Kaydet (Commit) bb2a38ce authored tarafından Adrian Holovaty's avatar Adrian Holovaty

Fixed syntax error in [2639]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2642 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 3bb34027
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment