aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2005-01-17 20:37:42 +0000
committerChris Larson <clarson@kergoth.com>2005-01-17 20:37:42 +0000
commit1a91ae2f3af7d16d371130b59df1f9394ccad3c6 (patch)
treec38d0a05c4dd5792b5858c07d3efc22e7f22acf1 /lib/bb/build.py
parent7f42f65bf5a8ac20e72f14c7eb0270287ff3ef4d (diff)
downloadbitbake-1a91ae2f3af7d16d371130b59df1f9394ccad3c6.tar.gz
Unbork our event classes a bit. Added a 'data' property to the Build events to be more consistent with the other events.
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index d6f2e97b3..a77f6e614 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -45,7 +45,7 @@ class EventException(Exception):
"""Exception which is associated with an Event."""
def __init__(self, msg, event):
- self.event = event
+ self._event = event
def getEvent(self):
return self._event
@@ -60,8 +60,8 @@ class TaskBase(event.Event):
"""Base class for task events"""
def __init__(self, t, d = {}):
- self.task = t
- self.data = d
+ self._task = t
+ event.Event.__init__(self, d)
def getTask(self):
return self._task
@@ -71,14 +71,6 @@ class TaskBase(event.Event):
task = property(getTask, setTask, None, "task property")
- def getData(self):
- return self._data
-
- def setData(self, data):
- self._data = data
-
- data = property(getData, setData, None, "data property")
-
class TaskStarted(TaskBase):
"""Task execution started"""