1
0
mirror of https://github.com/django/django.git synced 2024-12-26 02:56:25 +00:00

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
This commit is contained in:
Georg Bauer 2005-11-27 00:01:11 +00:00
parent c83fa94391
commit 53330a9274

View File

@ -78,7 +78,7 @@ ALLOWED_VARIABLE_CHARS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01
# what to report as the origin for templates that come from non-loader sources # what to report as the origin for templates that come from non-loader sources
# (e.g. strings) # (e.g. strings)
UNKNOWN_SOURCE="<unknown source>" UNKNOWN_SOURCE="&lt;unknown source&gt;"
# match a variable or block tag and capture the entire tag, including start/end delimiters # 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), tag_re = re.compile('(%s.*?%s|%s.*?%s)' % (re.escape(BLOCK_TAG_START), re.escape(BLOCK_TAG_END),