Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28bdc62

Browse files
committed
Clarified description of error handling for shutil.rmtree().
This closes SF patch #569832.
1 parent b1e8154 commit 28bdc62

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/lib/libshutil.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ \section{\module{shutil} ---
7878
\begin{funcdesc}{rmtree}{path\optional{, ignore_errors\optional{, onerror}}}
7979
\index{directory!deleting}
8080
Delete an entire directory tree. If \var{ignore_errors} is true,
81-
errors will be ignored; if false or omitted, errors are handled by
82-
calling a handler specified by \var{onerror} or raise an exception.
81+
errors resulting from failed removals will be ignored; if false or
82+
omitted, such errors are handled by calling a handler specified by
83+
\var{onerror} or, if that is omitted, they raise an exception.
8384

8485
If \var{onerror} is provided, it must be a callable that accepts
8586
three parameters: \var{function}, \var{path}, and \var{excinfo}.

0 commit comments

Comments
 (0)