Skip to content

Commit

Permalink
codacy false positive select_autoescape
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRyan authored and hjoliver committed Mar 20, 2019
1 parent a1a2930 commit 5e960f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cylc/review.py
Expand Up @@ -29,6 +29,7 @@
from fnmatch import fnmatch
from glob import glob
import jinja2
from jinja2 import select_autoescape
import json
import mimetypes
import os
Expand Down Expand Up @@ -82,7 +83,7 @@ def __init__(self, *args, **kwargs):
template_env = jinja2.Environment(
loader=jinja2.FileSystemLoader(
get_util_home("lib", "cylc", "cylc-review", "template")),
autoescape=jinja2.select_autoescape(
autoescape=select_autoescape(
enabled_extensions=('html', 'xml'), default_for_string=True),
)
template_env.filters['urlise'] = self.url2hyperlink
Expand Down

0 comments on commit 5e960f7

Please sign in to comment.