def get_local_client(
        c_path=os.path.join(syspaths.CONFIG_DIR, 'master'),
        mopts=None,
        skip_perm_errors=False,
        io_loop=None):
    if mopts:
        opts = mopts
    else:
        # Late import to prevent circular import
        import salt.config
        opts = salt.config.client_config(c_path)
    if opts['transport'] == 'raet':
        import salt.client.raet
        return salt.client.raet.LocalClient(mopts=opts)
    # TODO: AIO core is separate from transport
    elif opts['transport'] in ('zeromq', 'tcp'):
        return LocalClient(
            mopts=opts,
            skip_perm_errors=skip_perm_errors,
            io_loop=io_loop)
Generate a Cobertura-compatible XML report for `morfs`.
dataset/ETHPy150Open saltstack/salt/salt/client/__init__.py/get_local_client--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/coverage/xmlreport.py/XmlReporter.report