From 8001be8f37a8b0977b1defcfe8d9aa88038daee3 Mon Sep 17 00:00:00 2001 From: gbn Date: Thu, 10 Mar 2011 12:21:05 -0500 Subject: [PATCH] Remove import * --- 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 fe7ec76..64d2c3f 100644 --- a/send2trash/plat_other.py +++ b/send2trash/plat_other.py @@ -19,7 +19,7 @@ import os import os.path as op import logging from datetime import datetime -from stat import * +import stat FILES_DIR = 'files' INFO_DIR = 'info' @@ -100,7 +100,7 @@ def find_ext_volume_global_trash(volume_root): mode = os.lstat(trash_dir).st_mode # vol/.Trash must be a directory, cannot be a symlink, and must have the # sticky bit set. - if not op.isdir(trash_dir) or op.islink(trash_dir) or not (mode & S_ISVTX): + if not op.isdir(trash_dir) or op.islink(trash_dir) or not (mode & stat.S_ISVTX): return None trash_dir = op.join(trash_dir, str(uid))