From: Chris Lamb <lamby@debian.org>
Date: Fri, 30 Oct 2009 13:13:48 +0000 (+0000)
Subject: Don't shadow "dir" builtin.
X-Git-Tag: debian-r/squeeze~927^2~18
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7eebb18b8c0b128eb1292c9767cbb9aa3a893397;p=dak.git

Don't shadow "dir" builtin.

Signed-off-by: Chris Lamb <lamby@debian.org>
---

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)