From 826d9de00e74a53d7cc65fcb2aaa5ccdf33674ab Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Mon, 4 Feb 2013 20:31:50 -0300 Subject: [PATCH] Fixed #19729 -- Removed leftover refactoring helper variables. Thanks chrismedrela for the report. Refs #6262, 44b9076 and 4d94c0c. --- django/template/loaders/app_directories.py | 2 -- django/template/loaders/eggs.py | 2 -- django/template/loaders/filesystem.py | 2 -- 3 files changed, 6 deletions(-) diff --git a/django/template/loaders/app_directories.py b/django/template/loaders/app_directories.py index 887f8a0b72..cea01558d9 100644 --- a/django/template/loaders/app_directories.py +++ b/django/template/loaders/app_directories.py @@ -61,5 +61,3 @@ class Loader(BaseLoader): except IOError: pass raise TemplateDoesNotExist(template_name) - -_loader = Loader() diff --git a/django/template/loaders/eggs.py b/django/template/loaders/eggs.py index 7e35b34ec4..b7dcc75be3 100644 --- a/django/template/loaders/eggs.py +++ b/django/template/loaders/eggs.py @@ -31,5 +31,3 @@ class Loader(BaseLoader): resource = resource.decode(settings.FILE_CHARSET) return (resource, 'egg:%s:%s' % (app, pkg_name)) raise TemplateDoesNotExist(template_name) - -_loader = Loader() diff --git a/django/template/loaders/filesystem.py b/django/template/loaders/filesystem.py index e87cfef987..1a7f0d2cd7 100644 --- a/django/template/loaders/filesystem.py +++ b/django/template/loaders/filesystem.py @@ -44,5 +44,3 @@ class Loader(BaseLoader): error_msg = "Your TEMPLATE_DIRS setting is empty. Change it to point to at least one template directory." raise TemplateDoesNotExist(error_msg) load_template_source.is_usable = True - -_loader = Loader()