mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -8,7 +8,7 @@ validator will *always* be run, regardless of whether its associated | |||||||
| form field is required. | 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.translation import gettext, gettext_lazy, ngettext | ||||||
| from django.utils.functional import Promise, lazy | from django.utils.functional import Promise, lazy | ||||||
| import re | import re | ||||||
| @@ -447,9 +447,9 @@ class RelaxNGCompact: | |||||||
|         fp = open(filename, 'w') |         fp = open(filename, 'w') | ||||||
|         fp.write(field_data) |         fp.write(field_data) | ||||||
|         fp.close() |         fp.close() | ||||||
|         if not os.path.exists(JING_PATH): |         if not os.path.exists(settings.JING_PATH): | ||||||
|             raise Exception, "%s not found!" % JING_PATH |             raise Exception, "%s not found!" % settings.JING_PATH | ||||||
|         p = os.popen('%s -c %s %s' % (JING_PATH, self.schema_path, filename)) |         p = os.popen('%s -c %s %s' % (settings.JING_PATH, self.schema_path, filename)) | ||||||
|         errors = [line.strip() for line in p.readlines()] |         errors = [line.strip() for line in p.readlines()] | ||||||
|         p.close() |         p.close() | ||||||
|         os.unlink(filename) |         os.unlink(filename) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user