]> git.decadent.org.uk Git - dak.git/commitdiff
Don't shadow "dir" builtin.
authorChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 13:13:48 +0000 (13:13 +0000)
committerChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 14:29:57 +0000 (14:29 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/queue.py

index aeafb45853b987816aea2cacbbf75049d5f38bc4..8e8421f122658ebf2c2d59046bda0527a76162df 100755 (executable)
@@ -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)