Fixed use of "_" in RelaxNGCompact validator which was conflicting with gettext tag

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-11-22 03:39:39 +00:00
parent 6c127e3883
commit b6ddc9d3c1
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ class RelaxNGCompact:
display_errors = []
lines = field_data.split('\n')
for error in errors:
_, line, level, message = error.split(':', 3)
ignored, line, level, message = error.split(':', 3)
# Scrape the Jing error messages to reword them more nicely.
m = re.search(r'Expected "(.*?)" to terminate element starting on line (\d+)', message)
if m: