From 39e7476ae1fb795d31600200de0c0ab2255567c0 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 10 Nov 2007 14:12:21 +0100 Subject: [PATCH] explicit tuple call on set joining to not confuse the memory guard --HG-- branch : trunk --- jinja/translators/python.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jinja/translators/python.py b/jinja/translators/python.py index 1f48a11..c367d4c 100644 --- a/jinja/translators/python.py +++ b/jinja/translators/python.py @@ -389,7 +389,8 @@ class PythonTranslator(Translator): # bootstrapping code lines = ['# Essential imports', 'from __future__ import division'] if self.used_utils: - lines.append('from jinja.utils import %s' % ', '.join(self.used_utils)) + lines.append('from jinja.utils import %s' % \ + ', '.join(tuple(self.used_utils))) if self.require_runtime_error: lines.append('from jinja.exceptions import TemplateRuntimeError') if self.used_data_structures: -- 2.26.2