aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-06 10:33:06 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-06 10:33:06 -0400
commite0c76c5cca51ad07c40ab9800ffe6fcfdec24aee (patch)
tree3d6e39edd0eff838c37089165a3984be3bb942c4
parentlint: mark unused func args (diff)
downloadcatalyst-e0c76c5cca51ad07c40ab9800ffe6fcfdec24aee.tar.gz
catalyst-e0c76c5cca51ad07c40ab9800ffe6fcfdec24aee.tar.bz2
catalyst-e0c76c5cca51ad07c40ab9800ffe6fcfdec24aee.zip
lint: init all members in __init__
A few class members were being set outside of __init__. Usually this is an oversight, so having the linter complain is helpful. Set up the few places in the code that don't do this.
-rw-r--r--catalyst/base/stagebase.py2
-rw-r--r--catalyst/lock.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index e393c5bd..7bc75223 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -73,6 +73,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
previously. -agaffney
"""
+ self.makeconf = {}
self.archmap = {}
self.subarchmap = {}
machinemap = {}
@@ -156,6 +157,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
self.set_source_subpath()
""" Set paths """
+ self.snapshot_lock_object = None
self.set_snapshot_path()
self.set_root_path()
self.set_source_path()
diff --git a/catalyst/lock.py b/catalyst/lock.py
index d6653f79..d079b2d6 100644
--- a/catalyst/lock.py
+++ b/catalyst/lock.py
@@ -54,6 +54,7 @@ class LockDir(object):
else:
LockDir.lock_dirs_in_use.append(lockdir)
+ self.myhardlock = None
self.hardlock_paths={}
def delete_lock_from_path_list(self):