From 7eebb18b8c0b128eb1292c9767cbb9aa3a893397 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Fri, 30 Oct 2009 13:13:48 +0000 Subject: [PATCH] Don't shadow "dir" builtin. Signed-off-by: Chris Lamb --- daklib/queue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daklib/queue.py b/daklib/queue.py index aeafb458..8e8421f1 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -1978,14 +1978,14 @@ distribution.""" ########################################################################### - def remove(self, dir=None): + def remove(self, from_dir=None): """ Used (for instance) in p-u to remove the package from unchecked """ - if dir is None: + if from_dir is None: os.chdir(self.pkg.directory) else: - os.chdir(dir) + os.chdir(from_dir) for f in self.pkg.files.keys(): os.unlink(f) -- 2.39.5