From: Armin Ronacher Date: Sat, 10 Nov 2007 13:12:21 +0000 (+0100) Subject: explicit tuple call on set joining to not confuse the memory guard X-Git-Tag: 2.0rc1~241 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=39e7476ae1fb795d31600200de0c0ab2255567c0;p=jinja2.git explicit tuple call on set joining to not confuse the memory guard --HG-- branch : trunk --- 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: