aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2010-02-17 22:11:13 +0100
committerSebastian Pipping <sebastian@pipping.org>2010-02-17 22:41:11 +0100
commit46b5e63dda2b5bef24f5a4803c920a6637c5b56b (patch)
tree2957a8b3b414171fe246fd270000ec118dfd2271
parentpylint: Remove unused variable (diff)
downloadlayman-46b5e63dda2b5bef24f5a4803c920a6637c5b56b.tar.gz
layman-46b5e63dda2b5bef24f5a4803c920a6637c5b56b.tar.bz2
layman-46b5e63dda2b5bef24f5a4803c920a6637c5b56b.zip
pylint: Resolve redefinition of variable by renaming
-rw-r--r--layman/overlays/tar.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/layman/overlays/tar.py b/layman/overlays/tar.py
index c994858..71369a6 100644
--- a/layman/overlays/tar.py
+++ b/layman/overlays/tar.py
@@ -133,16 +133,16 @@ class TarOverlay(OverlaySource):
return result
def _add_unchecked(self, base, quiet):
- def try_to_wipe(path):
- if not os.path.exists(path):
+ def try_to_wipe(folder):
+ if not os.path.exists(folder):
return
try:
- OUT.info('Deleting directory "%s"' % path, 2)
- shutil.rmtree(path)
+ OUT.info('Deleting directory "%s"' % folder, 2)
+ shutil.rmtree(folder)
except Exception, error:
raise Exception('Failed to remove unnecessary tar structure "'
- + path + '"\nError was:' + str(error))
+ + folder + '"\nError was:' + str(error))
final_path = path([base, self.parent.name])
temp_path = tempfile.mkdtemp(dir=base)