summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-23 10:49:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 10:34:52 +0100
commitb9bd05b6724bb1cfe1a2ebd0610e6e084525eb63 (patch)
treef15dbf13ddfcf506252b93cbe3c59c1b8e4d961e
parent0130b4c2691ddee3867df9de5a2852b2bcf1f617 (diff)
downloadast2050-yocto-poky-b9bd05b6724bb1cfe1a2ebd0610e6e084525eb63.zip
ast2050-yocto-poky-b9bd05b6724bb1cfe1a2ebd0610e6e084525eb63.tar.gz
bitbake: event: Drop Handled/NotHandled status return values
These have long since been deprecated, lets remove them. (Bitbake rev: 3dc83bbb1bf387bb7ecea2e17f0f72cfccecba92) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/event.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index e41455d..11c063f 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -47,9 +47,6 @@ class Event(object):
def __init__(self):
self.pid = worker_pid
-NotHandled = 0
-Handled = 1
-
Registered = 10
AlreadyRegistered = 14
@@ -58,10 +55,6 @@ _handlers = bb.compat.OrderedDict()
_ui_handlers = {}
_ui_handler_seq = 0
-# For compatibility
-bb.utils._context["NotHandled"] = NotHandled
-bb.utils._context["Handled"] = Handled
-
def execute_handler(name, handler, event, d):
event.data = d
try:
@@ -80,10 +73,6 @@ def execute_handler(name, handler, event, d):
finally:
del event.data
- if ret is not None:
- warnings.warn("Using Handled/NotHandled in event handlers is deprecated",
- DeprecationWarning, stacklevel = 2)
-
def fire_class_handlers(event, d):
if isinstance(event, logging.LogRecord):
return
OpenPOWER on IntegriCloud