diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-11-27 00:01:11 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-11-27 00:01:11 +0000 |
| commit | 53330a9274a395cd5397fa4a751299c55e4b1e4e (patch) | |
| tree | 4bd21752f27a7bf6a00fad262854bf5efde0095d | |
| parent | c83fa9439146d48fbe316ca977e9fba6e23c7bff (diff) | |
unknown sources are now shown correctly as <unknown source> (before it was shown as a tag)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/template/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/template/__init__.py b/django/core/template/__init__.py index 5a755fd15f..8144e651a1 100644 --- a/django/core/template/__init__.py +++ b/django/core/template/__init__.py @@ -78,7 +78,7 @@ ALLOWED_VARIABLE_CHARS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01 # what to report as the origin for templates that come from non-loader sources # (e.g. strings) -UNKNOWN_SOURCE="<unknown source>" +UNKNOWN_SOURCE="<unknown source>" # match a variable or block tag and capture the entire tag, including start/end delimiters tag_re = re.compile('(%s.*?%s|%s.*?%s)' % (re.escape(BLOCK_TAG_START), re.escape(BLOCK_TAG_END), |
