From f13eb55d59d80907c9f86574ddd23bce2cb41ff3 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 2 Jun 2002 00:40:05 +0000 Subject: Replace boolean test with is None. --- Lib/shutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/shutil.py') diff --git a/Lib/shutil.py b/Lib/shutil.py index 6e3a27639e..4340127302 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -122,7 +122,7 @@ def rmtree(path, ignore_errors=0, onerror=None): exc = sys.exc_info() if ignore_errors: pass - elif onerror: + elif onerror is not None: onerror(cmd[0], cmd[1], exc) else: raise exc[0], (exc[1][0], exc[1][1] + ' removing '+cmd[1]) -- cgit v1.2.1