summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-02 00:40:05 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-02 00:40:05 (GMT)
commitf13eb55d59d80907c9f86574ddd23bce2cb41ff3 (patch)
tree799ffe8a95c5cacd946f186f3022f380b418141d /Lib/shutil.py
parent1931ca72b5769ee686776617e2d97d839cc7d2d6 (diff)
downloadcpython-f13eb55d59d80907c9f86574ddd23bce2cb41ff3.zip
cpython-f13eb55d59d80907c9f86574ddd23bce2cb41ff3.tar.gz
cpython-f13eb55d59d80907c9f86574ddd23bce2cb41ff3.tar.bz2
Replace boolean test with is None.
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index 6e3a276..4340127 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])