Edgewall Software

Changeset 1214


Ignore:
Timestamp:
Jan 26, 2013, 12:59:30 PM (11 years ago)
Author:
hodgestar
Message:

Merge r1213 from trunk (fix infinite loop in interpolation brace matching caused by a change in 2.7).

Location:
branches/stable/0.6.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/0.6.x

    • Property svn:mergeinfo changed
      /trunkmerged: 1213
  • branches/stable/0.6.x/genshi/template/interpolation.py

    r1082 r1214  
    116116            while level:
    117117                match = token_re.match(text, pos)
    118                 if match is None:
     118                if match is None or not match.group():
     119                    # if there isn't a match or the match is the empty
     120                    # string, we're not going to match up braces ever
    119121                    raise TemplateSyntaxError('invalid syntax',  filepath,
    120122                                              *textpos[1:])
Note: See TracChangeset for help on using the changeset viewer.