

def _generate(self):
    for child in self.children:
        if isinstance(child, Fragment):
            for event in child._generate():
                (yield event)
        elif isinstance(child, Stream):
            for event in child:
                (yield event)
        else:
            if (not isinstance(child, basestring)):
                child = unicode(child)
            (yield (TEXT, child, (None, (- 1), (- 1))))

dataset/ETHPy150Open timonwong/OmniMarkupPreviewer/OmniMarkupLib/Renderers/libs/python2/genshi/builder.py Fragment._generate/original