explicit tuple call on set joining to not confuse the memory guard
authorArmin Ronacher <armin.ronacher@active-4.com>
Sat, 10 Nov 2007 13:12:21 +0000 (14:12 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sat, 10 Nov 2007 13:12:21 +0000 (14:12 +0100)
--HG--
branch : trunk

jinja/translators/python.py

index 1f48a1114871a007ef72584c4f69c484d9eda516..c367d4c4c033b1d417571880b322dd77dc443b8d 100644 (file)
@@ -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: