mitsuhiko  committed 886d250 Merge

Automated merge with ssh://

  • Participants
  • Parent commits c72399e, a3e1dea

Comments (0)

Files changed (1)

File ext/django2jinja/

 _newline_re = re.compile(r'(?:\r\n|\r|\n)')
-# don't ask....
+# Django stores an itertools object on the cycle node.  Not only is this
+# thread unsafe but also a problem for the converter which needs the raw
+# string values passed to the constructor to create a jinja loop.cycle()
+# call from it.
 _old_cycle_init = core_tags.CycleNode.__init__
 def _fixed_cycle_init(self, cyclevars, variable_name=None):
     self.raw_cycle_vars = map(Variable, cyclevars)