From: Tim Golden Date: Wed, 7 May 2014 17:08:08 +0000 (+0100) Subject: Issue19643 Fix whitespace X-Git-Tag: v3.5.0a1~1721 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba74885e0c3b738c75962a6afa2885a025f5239b;p=thirdparty%2FPython%2Fcpython.git Issue19643 Fix whitespace --- diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index eb81c7d48c32..3ed1d05194cd 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: