def parseString(string, parser=None):
    try:
        from cStringIO import StringIO
    except __HOLE__:
        from StringIO import StringIO

    bufsize = len(string)
    buf = StringIO(string)
    if not parser:
        parser = xml.sax.make_parser()
    return DOMEventStream(buf, parser, bufsize)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/xml/dom/pulldom.py/parseString