def __exit__(self, *args):
if self.src_dir is not None:<EOL><INDENT>for directory in self._needed_directories:<EOL><INDENT>if os.path.exists("<STR_LIT>".format(self.src_dir, directory)):<EOL><INDENT>rmtree("<STR_LIT>".format(self.src_dir, directory))<EOL><DEDENT><DEDENT><DEDENT>
Removes the works of __enter__. Will only be called if the instance is
initialized within a context manager.