def dump(self,indent='',depth=0):
        """Diagnostic method for listing out the contents of a C{ParseResults}.
           Accepts an optional C{indent} argument so that this string can be embedded
           in a nested display of other data."""
        out = []
        NL = '\n'
        out.append( indent+_ustr(self.asList()) )
        items = sorted(self.items())
        for k,v in items:
            if out:
                out.append(NL)
            out.append( "%s%s- %s: " % (indent,('  '*depth), k) )
            if isinstance(v,ParseResults):
                if v:
                    if v.haskeys():
                        out.append( v.dump(indent,depth+1) )
                    elif any(isinstance(vv,ParseResults) for vv in v):
                        for i,vv in enumerate(v):
                            if isinstance(vv,ParseResults):
                                out.append((indent,('  '*(depth+1)),i,indent,('  '*(depth+2)),vv.dump(indent,depth+2) ) % "\n%s%s[%d]:\n%s%s%s")
                            else:
                                out.append("\n%s%s[%d]:\n%s%s%s" % (indent,('  '*(depth+1)),i,indent,('  '*(depth+2)),_ustr(vv)))
                    else:
                        out.append(_ustr(v))
                else:
                    out.append(_ustr(v))
            else:
                out.append(_ustr(v))
        return "".join(out)
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/dep/pyparsing.py/ParseResults.dump/swapped operands of `%`