Merge "Set autoescape=True to resolve Bandit B701 error"

This commit is contained in:
Zuul 2019-04-08 20:48:31 +00:00 committed by Gerrit Code Review
commit 0cf4fb0523
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class SiteProcessor(BaseProcessor):
for dirpath, dirs, files in os.walk(template_dir_abspath): for dirpath, dirs, files in os.walk(template_dir_abspath):
for filename in files: for filename in files:
j2_env = Environment( j2_env = Environment(
autoescape=False, autoescape=True,
loader=FileSystemLoader(dirpath), loader=FileSystemLoader(dirpath),
trim_blocks=True, trim_blocks=True,
) )