changeset: 90584:a7560c8f38ee user: Tim Golden date: Wed May 07 18:08:08 2014 +0100 files: Doc/library/shutil.rst description: Issue19643 Fix whitespace diff -r 31d63ea5dffa -r a7560c8f38ee Doc/library/shutil.rst --- a/Doc/library/shutil.rst Wed May 07 18:05:45 2014 +0100 +++ b/Doc/library/shutil.rst Wed May 07 18:08:08 2014 +0100 @@ -433,12 +433,12 @@ 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: