Skip to content

Commit 01a2a34

Browse files
committed
Removed dry_run parameter
1 parent 2c79edb commit 01a2a34

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

adafruit_templateengine.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,7 @@ def _create_template_rendering_function( # pylint: disable=,too-many-locals,too
468468
lstrip_blocks: bool = True,
469469
function_name: str = "__template_rendering_function",
470470
context_name: str = "context",
471-
dry_run: bool = False,
472-
) -> "Generator[str] | str":
471+
) -> "Generator[str]":
473472
# Resolve includes, blocks and extends
474473
template = _resolve_includes_blocks_and_extends(template)
475474

@@ -673,10 +672,6 @@ def _create_template_rendering_function( # pylint: disable=,too-many-locals,too
673672
indent * indentation_level + f"yield {repr(text_after_last_token)}\n"
674673
)
675674

676-
# If dry run, return the template function string
677-
if dry_run:
678-
return function_string
679-
680675
# Create and return the template function
681676
exec(function_string) # pylint: disable=exec-used
682677
return locals()[function_name]

0 commit comments

Comments
 (0)