From c211c59b4a9ef66152eee0109107f22a9bd1a22f Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 15 Nov 2014 18:35:53 +0100 Subject: [PATCH] Removed the "test:" prefix from locmem template identifiers. Since it isn't branded as a test utility any more and could be used for other purposes than test code, that prefix no longer makes sense. It wasn't used anywhere either. --- django/template/loaders/locmem.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/template/loaders/locmem.py b/django/template/loaders/locmem.py index 6cb1c599c6..e61db5f15d 100644 --- a/django/template/loaders/locmem.py +++ b/django/template/loaders/locmem.py @@ -16,7 +16,6 @@ class Loader(BaseLoader): def load_template_source(self, template_name, template_dirs=None, skip_template=None): try: - return (self.templates_dict[template_name], - "test:%s" % template_name) + return self.templates_dict[template_name], template_name except KeyError: raise TemplateDoesNotExist(template_name)