mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
support.temp_dir(): call support.rmtree() instead of shutil.rmtree()
This commit is contained in:
parent
3899b549e3
commit
e40390473d
1 changed files with 1 additions and 1 deletions
|
@ -902,7 +902,7 @@ def temp_dir(path=None, quiet=False):
|
|||
yield path
|
||||
finally:
|
||||
if dir_created:
|
||||
shutil.rmtree(path)
|
||||
rmtree(path)
|
||||
|
||||
@contextlib.contextmanager
|
||||
def change_cwd(path, quiet=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue