11from copy import copy
22
3- from django .conf import settings
43from django .template import Context , RequestContext
54from django .template .base import TextNode
65from 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
0 commit comments