mirror of
https://github.com/python/cpython.git
synced 2025-11-12 23:16:47 +00:00
Use shutil.rmtree rather than os.rmdir.
This commit is contained in:
parent
e96d4ea4e2
commit
09cafb6335
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ func_filename = func.func_code.co_filename
|
||||||
if os.path.exists(file_name):
|
if os.path.exists(file_name):
|
||||||
os.remove(file_name)
|
os.remove(file_name)
|
||||||
if os.path.exists(self.dir_name):
|
if os.path.exists(self.dir_name):
|
||||||
os.rmdir(self.dir_name)
|
shutil.rmtree(self.dir_name)
|
||||||
|
|
||||||
def import_module(self):
|
def import_module(self):
|
||||||
ns = globals()
|
ns = globals()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue