Home | History | Annotate | Download | only in Lib

Lines Matching refs:onerror

207 def rmtree(path, ignore_errors=False, onerror=None):

210 If ignore_errors is set, errors are ignored; otherwise, if onerror
215 is false and onerror is None, an exception is raised.
219 def onerror(*args):
221 elif onerror is None:
222 def onerror(*args):
229 onerror(os.path.islink, path, sys.exc_info())
230 # can't continue even if onerror hook returns
236 onerror(os.listdir, path, sys.exc_info())
244 rmtree(fullname, ignore_errors, onerror)
249 onerror(os.remove, fullname, sys.exc_info())
253 onerror(os.rmdir, path, sys.exc_info())