@@ -0,0 +1,262 @@
+from __future__ import absolute_import%0A%0Aimport shutil%0Aimport tempfile%0Aimport contextlib%0A%0A@contextlib.contextmanager%0Adef TemporaryDirectory():%0A    name = tempfile.mkdtemp()%0A%0A    try:%0A        yield name%0A    finally:%0A        shutil.rmtree(name, ignore_errors=True)%0A

Add TemporaryDirectory context manager.