From 307b95b45bdcfaf8f6188d2d7855053cb682fe6a Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Mon, 16 Jan 2006 15:24:37 +0000 Subject: [PATCH] magic-removal: changed explicit settings import to qualified settings import in django.core.validators git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2005 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/validators.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/django/core/validators.py b/django/core/validators.py index 0c0029dbf9..200ada4c0a 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -8,7 +8,7 @@ validator will *always* be run, regardless of whether its associated form field is required. """ -from django.conf.settings import JING_PATH +from django.conf import settings from django.utils.translation import gettext, gettext_lazy, ngettext from django.utils.functional import Promise, lazy import re @@ -447,9 +447,9 @@ class RelaxNGCompact: fp = open(filename, 'w') fp.write(field_data) fp.close() - if not os.path.exists(JING_PATH): - raise Exception, "%s not found!" % JING_PATH - p = os.popen('%s -c %s %s' % (JING_PATH, self.schema_path, filename)) + if not os.path.exists(settings.JING_PATH): + raise Exception, "%s not found!" % settings.JING_PATH + p = os.popen('%s -c %s %s' % (settings.JING_PATH, self.schema_path, filename)) errors = [line.strip() for line in p.readlines()] p.close() os.unlink(filename)