Skip to content
Myr

[svn] and delete jinja 1.0 again. python2.3 bug

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 6219da0 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:jinja/lexer.py+2 added-2 removed
21 unmodified lines
22string_re = re.compile(r"('([^'\\]*(?:\\.[^'\\]*)*)'"23 r'|"([^"\\]*(?:\\.[^"\\]*)*)")(?ms)')24number_re = re.compile(r'\d+(\.\d+)*')2526operator_re = re.compile('(%s)' % '|'.join(26operator_re = re.compile('(%s)' % '|'.join([27 isinstance(x, unicode) and str(x) or re.escape(x) for x in [28 # math operators29 '+', '-', '*', '/', '%',30 # braces and parenthesis31 '[', ']', '(', ')', '{', '}',32 # attribute access and comparison / logical operators33 '.', ':', ',', '|', '==', '<', '>', '<=', '>=', '!=', '=',34 ur'or\b', ur'and\b', ur'not\b', ur'in\b', ur'is'35]))35]]))3637# set of used keywords38keywords = set(['and', 'block', 'cycle', 'elif', 'else', 'endblock',39 'endfilter', 'endfor', 'endif', 'endmacro', 'endraw',
195 unmodified lines