mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +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 shutil
|
||||
|
||||
|
||||
def remove_readonly(func, path, _):
|
||||
"Clear the readonly bit and reattempt the removal"
|
||||
os.chmod(path, stat.S_IWRITE)
|
||||
func(path)
|
||||
|
||||
func(path)
|
||||
|
||||
shutil.rmtree(directory, onerror=remove_readonly)
|
||||
|
||||
.. _archiving-operations:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue