mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue19643 Fix whitespace
This commit is contained in:
parent
783377998a
commit
ba74885e0c
1 changed files with 3 additions and 3 deletions
|
@ -433,12 +433,12 @@ will propagate. ::
|
||||||
|
|
||||||
import os, stat
|
import os, stat
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
def remove_readonly(func, path, _):
|
def remove_readonly(func, path, _):
|
||||||
"Clear the readonly bit and reattempt the removal"
|
"Clear the readonly bit and reattempt the removal"
|
||||||
os.chmod(path, stat.S_IWRITE)
|
os.chmod(path, stat.S_IWRITE)
|
||||||
func(path)
|
func(path)
|
||||||
|
|
||||||
shutil.rmtree(directory, onerror=remove_readonly)
|
shutil.rmtree(directory, onerror=remove_readonly)
|
||||||
|
|
||||||
.. _archiving-operations:
|
.. _archiving-operations:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue