Skip to content

Commit 0a116ea

Browse files
committed
lint
1 parent 6593041 commit 0a116ea

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

render_block/django.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from copy import copy
22

3-
from django.conf import settings
43
from django.template import Context, RequestContext
54
from django.template.base import TextNode
65
from django.template.context import RenderContext
@@ -45,7 +44,9 @@ def django_render_block(template, block_name, context, request=None):
4544
parent_template = _build_block_context(template, context_instance)
4645

4746
try:
48-
node, render_context = _find_template_block(template, block_name, context_instance)
47+
node, render_context = _find_template_block(
48+
template, block_name, context_instance
49+
)
4950
except BlockNotFound:
5051
# The block wasn't found in the current template.
5152

@@ -54,7 +55,9 @@ def django_render_block(template, block_name, context, request=None):
5455
raise
5556

5657
# Check the parent template for this block.
57-
node, render_context = _find_template_block(parent_template, block_name, context_instance)
58+
node, render_context = _find_template_block(
59+
parent_template, block_name, context_instance
60+
)
5861

5962
if not template.engine.debug:
6063
_NODES_CACHE[cache_key] = node, render_context

tests/tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def test_node_cache(self):
151151
self.assertEqual(result, "block1 from test1")
152152

153153

154-
155154
@override_settings(
156155
TEMPLATES=[
157156
{

0 commit comments

Comments
 (0)