@contextmanager
def _open(path):
    if path == '-':
        yield sys.stdin
    else:
        with open(path) as f:
            yield f
Mock of the built-in `open()` function. If `path` is `-` then
dataset/ETHPy150Open rubik/radon/radon/cli/tools.py/_open