From ba74885e0c3b738c75962a6afa2885a025f5239b Mon Sep 17 00:00:00 2001 From: Tim Golden Date: Wed, 7 May 2014 18:08:08 +0100 Subject: Issue19643 Fix whitespace --- Doc/library/shutil.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index eb81c7d..3ed1d05 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -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: -- cgit v0.12