From b6ddc9d3c16a028defca175781592325ae1796c8 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 22 Nov 2005 03:39:39 +0000 Subject: [PATCH] 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 --- django/core/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/validators.py b/django/core/validators.py index d1246d8f55a..b36f0009722 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -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: