summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-24 12:28:53 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-24 12:28:53 +0000
commitdfdf7bdc5e0c11143b3f11ddfa3dc755013ccbfb (patch)
tree3de3587fc296e021c996f49504889734b1343c7c
parent1e70426619ea512e6792a5b5adf6740fa8fb1cc6 (diff)
Fixed #4378 -- Fixed a broken format string.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/template/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py
index 9811a5649d..4f2ddfc8b3 100644
--- a/django/template/__init__.py
+++ b/django/template/__init__.py
@@ -479,7 +479,7 @@ class TokenParser(object):
while i < len(subject) and subject[i] != c:
i += 1
if i >= len(subject):
- raise TemplateSyntaxError, "Searching for value. Unexpected end of string in column %d: %s" % subject
+ raise TemplateSyntaxError, "Searching for value. Unexpected end of string in column %d: %s" % (i, subject)
i += 1
s = subject[p:i]
while i < len(subject) and subject[i] in (' ', '\t'):