fix flake8

This commit is contained in:
Ryan Petrello
2018-10-24 08:49:35 -04:00
parent c44160933d
commit c695ba2e10
11 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -78,10 +78,10 @@ def sanitize_jinja(arg):
if isinstance(arg, six.string_types):
# If the argument looks like it contains Jinja expressions
# {{ x }} ...
if re.search('\{\{[^}]+}}', arg) is not None:
if re.search(r'\{\{[^}]+}}', arg) is not None:
raise ValueError('Inline Jinja variables are not allowed.')
# If the argument looks like it contains Jinja statements/control flow...
# {% if x.foo() %} ...
if re.search('\{%[^%]+%}', arg) is not None:
if re.search(r'\{%[^%]+%}', arg) is not None:
raise ValueError('Inline Jinja variables are not allowed.')
return arg