def SplitUriRef(uriref):
    # the pattern will match every possible string, so it's safe to
    # assume there's a groupdict method to call.
    g = SPLIT_URI_REF_PATTERN.match(uriref).groupdict()
    scheme      = g['scheme']
    authority   = g['authority']
    path        = g['path']
    query       = g['query']
    fragment    = g['fragment']
    return (scheme, authority, path, query, fragment)
should replace urlparse.urlsplit
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/xml/Uri.py/SplitUriRef