Skip to content
Myr

Fixed a testcase for Python 2.4

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent d7c765d · Browse files · 1 file+10 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−6 removed

  • other:+10 added−6 removed

1 file+10 added−6 removed

modified:jinja2/compiler.py+10 added-6 removed
437 unmodified lines
438 self.writeline('%s = []' % frame.buffer)439440 def return_buffer_contents(self, frame):441 """Return the buffer contents of the frame."""442 self.writeline('return ')442 if frame.eval_ctx.volatile:444 self.write('(Markup(concat(%s)) if context.eval_ctx'445 '.autoescape else concat(%s))' %446 (frame.buffer, frame.buffer))443 self.writeline('if context.eval_ctx.autoescape:')444 self.indent()445 self.writeline('return Markup(concat(%s))' % frame.buffer)446 self.outdent()447 self.writeline('else:')448 self.indent()449 self.writeline('return concat(%s)' % frame.buffer)450 self.outdent()451 elif frame.eval_ctx.autoescape:448 self.write('Markup(concat(%s))' % frame.buffer)452 self.writeline('return Markup(concat(%s))' % frame.buffer)453 else:450 self.write('concat(%s)' % frame.buffer)454 self.writeline('return concat(%s)' % frame.buffer)455456 def indent(self):457 """Indent by one."""458 self._indentation += 1
1175 unmodified lines