From e46b3a5e19b53491a9bf59dccff55ec7babb89f3 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 18 Oct 2018 20:10:52 +0200 Subject: [PATCH] Rename s to s_ in api.template_string() Issue described in #76 applied here as well, however less propable. Same fix as in a8fc78fcda --- responder/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/responder/api.py b/responder/api.py index a164bfa..bd81150 100644 --- a/responder/api.py +++ b/responder/api.py @@ -429,12 +429,12 @@ class API: template = env.get_template(name_) return template.render(**values) - def template_string(self, s, auto_escape=True, **values): + def template_string(self, s_, auto_escape=True, **values): """Renders the given `jinja2 `_ template string, with provided values supplied. Note: The current ``api`` instance is always passed into the view. - :param s: The template to use. + :param s_: The template to use. :param auto_escape: If ``True``, HTML and XML will automatically be escaped. :param values: Data to pass into the template. """ @@ -451,7 +451,7 @@ class API: loader=jinja2.BaseLoader, autoescape=jinja2.select_autoescape([]) ) - template = env.from_string(s) + template = env.from_string(s_) return template.render(**values) def run(self, address=None, port=None, **options):