summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2023-02-01 07:13:39 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-01 11:04:38 +0100
commit097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 (patch)
tree7042be9ee3aabda10ecfa8923a113388b81f34a8 /django/template
parent8c660fb59239828583f17cdede3b64f208b8752c (diff)
Refs #33476 -- Applied Black's 2023 stable style.
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
Diffstat (limited to 'django/template')
-rw-r--r--django/template/backends/base.py1
-rw-r--r--django/template/backends/django.py1
-rw-r--r--django/template/backends/dummy.py1
-rw-r--r--django/template/backends/jinja2.py1
-rw-r--r--django/template/defaulttags.py1
5 files changed, 0 insertions, 5 deletions
diff --git a/django/template/backends/base.py b/django/template/backends/base.py
index 240733e6f4..991ce64cb7 100644
--- a/django/template/backends/base.py
+++ b/django/template/backends/base.py
@@ -5,7 +5,6 @@ from django.utils.functional import cached_property
class BaseEngine:
-
# Core methods: engines have to provide their own implementation
# (except for from_string which is optional).
diff --git a/django/template/backends/django.py b/django/template/backends/django.py
index 98abf7ddb5..ba561bba9f 100644
--- a/django/template/backends/django.py
+++ b/django/template/backends/django.py
@@ -12,7 +12,6 @@ from .base import BaseEngine
class DjangoTemplates(BaseEngine):
-
app_dirname = "templates"
def __init__(self, params):
diff --git a/django/template/backends/dummy.py b/django/template/backends/dummy.py
index 692382b6b1..cf0c0012a8 100644
--- a/django/template/backends/dummy.py
+++ b/django/template/backends/dummy.py
@@ -9,7 +9,6 @@ from .utils import csrf_input_lazy, csrf_token_lazy
class TemplateStrings(BaseEngine):
-
app_dirname = "template_strings"
def __init__(self, params):
diff --git a/django/template/backends/jinja2.py b/django/template/backends/jinja2.py
index 031278c2e2..83cc136147 100644
--- a/django/template/backends/jinja2.py
+++ b/django/template/backends/jinja2.py
@@ -12,7 +12,6 @@ from .utils import csrf_input_lazy, csrf_token_lazy
class Jinja2(BaseEngine):
-
app_dirname = "jinja2"
def __init__(self, params):
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py
index 59049069de..b10a811c7c 100644
--- a/django/template/defaulttags.py
+++ b/django/template/defaulttags.py
@@ -309,7 +309,6 @@ class IfNode(Node):
def render(self, context):
for condition, nodelist in self.conditions_nodelists:
-
if condition is not None: # if / elif clause
try:
match = condition.eval(context)