From f177a659de01953041e4832e171310abbc5ac8b6 Mon Sep 17 00:00:00 2001 From: Estelle Poulin Date: Thu, 13 Apr 2023 20:40:36 -0400 Subject: [PATCH] Formatting --- subjugate/template/backends/subjugate.py | 7 ++++--- subjugate/template/engine.py | 1 - subjugate/template/loaders/base.py | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/subjugate/template/backends/subjugate.py b/subjugate/template/backends/subjugate.py index 6661ee9..9700c57 100644 --- a/subjugate/template/backends/subjugate.py +++ b/subjugate/template/backends/subjugate.py @@ -1,14 +1,15 @@ from subjugate.template.engine import GenericEngine from subjugate.template import SubjugateTemplate + class SubjugateTemplates(GenericEngine): template_cls = SubjugateTemplate app_dirname = "subjugate" def __init__(self, params): params = params.copy() - self.dirs = list(params.pop('DIRS')) or [] - self.app_dirs = bool(params.pop('APP_DIRS')) - options = params.pop('OPTIONS') + self.dirs = list(params.pop("DIRS")) or [] + self.app_dirs = bool(params.pop("APP_DIRS")) + options = params.pop("OPTIONS") super().__init__(self.dirs, self.app_dirs, **options) diff --git a/subjugate/template/engine.py b/subjugate/template/engine.py index 0170323..8cadb15 100644 --- a/subjugate/template/engine.py +++ b/subjugate/template/engine.py @@ -1,6 +1,5 @@ from typing import List, Tuple, Union from django.core.exceptions import ImproperlyConfigured -from django.utils.functional import cached_property from django.utils.module_loading import import_string from django.template import Template from django.template.engine import Engine diff --git a/subjugate/template/loaders/base.py b/subjugate/template/loaders/base.py index a160795..a5e285e 100644 --- a/subjugate/template/loaders/base.py +++ b/subjugate/template/loaders/base.py @@ -38,4 +38,3 @@ class GenericLoader(base.Loader): def from_string(self, template_code): return self.template_cls(template_code, self.engine) -