Edgewall Software

Changeset 1239 for trunk


Ignore:
Timestamp:
Jun 17, 2013, 10:52:21 PM (10 years ago)
Author:
hodgestar
Message:

Fix assert with side-effect in xi:fallback directive processing (see #565).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/template/markup.py

    r1170 r1239  
    231231            elif kind is END:
    232232                if fallbacks and data == xinclude_ns['fallback']:
    233                     assert streams.pop() is fallbacks[-1]
     233                    fallback_stream = streams.pop()
     234                    assert fallback_stream is fallbacks[-1]
    234235                elif data == xinclude_ns['include']:
    235236                    fallback = None
Note: See TracChangeset for help on using the changeset viewer.