

@contextmanager
def tempdir(self):
    'A context manager that creates a temporary directory, which is removed when the context\n        exits'
    dir = self.path(mkdtemp())
    try:
        (yield self)
    finally:
        dir.delete()

dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/machines/local.py LocalMachine.tempdir/VarMisuse@32/68 `dir`->`self`