[dak/master 05/23] Don't shadow "dir" builtin.
Signed-off-by: Chris Lamb <lamby@debian.org>
---
daklib/queue.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/daklib/queue.py b/daklib/queue.py
index aeafb45..8e8421f 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)
--
1.6.3.3
Reply to: