From 18e3187c2f65486fcb5456504cbfe48242c72b20 Mon Sep 17 00:00:00 2001 From: gbn Date: Thu, 10 Mar 2011 12:22:21 -0500 Subject: [PATCH] Replace == None with is None --- send2trash/plat_other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/send2trash/plat_other.py b/send2trash/plat_other.py index 64d2c3f..6480de7 100644 --- a/send2trash/plat_other.py +++ b/send2trash/plat_other.py @@ -48,7 +48,7 @@ def format_date(date): def info_for(src, topdir): # ...it MUST not include a ".."" directory, and for files not "under" that # directory, absolute pathnames must be used. [2] - if topdir == None or not is_parent(topdir, src): + if topdir is None or not is_parent(topdir, src): src = op.abspath(src) else: src = op.relpath(src, topdir) @@ -120,7 +120,7 @@ def find_ext_volume_fallback_trash(volume_root): def find_ext_volume_trash(volume_root): trash_dir = find_ext_volume_global_trash(volume_root) - if trash_dir == None: + if trash_dir is None: trash_dir = find_ext_volume_fallback_trash(volume_root) return trash_dir