def splitport(host):
    global _portprog
    if _portprog is None:
        import re
        _portprog = re.compile('^(.*):([0-9]+)$')

    match = _portprog.match(host)
    if match: return match.group(1, 2)
    return host, None
Register an L{IProtocol} provider to receive the response body.
dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/urllib.py/splitport--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/web/iweb.py/IResponse.deliverBody