diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-23 10:49:06 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-24 10:34:52 +0100 |
commit | b9bd05b6724bb1cfe1a2ebd0610e6e084525eb63 (patch) | |
tree | f15dbf13ddfcf506252b93cbe3c59c1b8e4d961e /bitbake/lib/bb/event.py | |
parent | 0130b4c2691ddee3867df9de5a2852b2bcf1f617 (diff) | |
download | 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>
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r-- | bitbake/lib/bb/event.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index e41455d273..11c063fcc8 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -47,9 +47,6 @@ class Event(object): | |||
47 | def __init__(self): | 47 | def __init__(self): |
48 | self.pid = worker_pid | 48 | self.pid = worker_pid |
49 | 49 | ||
50 | NotHandled = 0 | ||
51 | Handled = 1 | ||
52 | |||
53 | Registered = 10 | 50 | Registered = 10 |
54 | AlreadyRegistered = 14 | 51 | AlreadyRegistered = 14 |
55 | 52 | ||
@@ -58,10 +55,6 @@ _handlers = bb.compat.OrderedDict() | |||
58 | _ui_handlers = {} | 55 | _ui_handlers = {} |
59 | _ui_handler_seq = 0 | 56 | _ui_handler_seq = 0 |
60 | 57 | ||
61 | # For compatibility | ||
62 | bb.utils._context["NotHandled"] = NotHandled | ||
63 | bb.utils._context["Handled"] = Handled | ||
64 | |||
65 | def execute_handler(name, handler, event, d): | 58 | def execute_handler(name, handler, event, d): |
66 | event.data = d | 59 | event.data = d |
67 | try: | 60 | try: |
@@ -80,10 +73,6 @@ def execute_handler(name, handler, event, d): | |||
80 | finally: | 73 | finally: |
81 | del event.data | 74 | del event.data |
82 | 75 | ||
83 | if ret is not None: | ||
84 | warnings.warn("Using Handled/NotHandled in event handlers is deprecated", | ||
85 | DeprecationWarning, stacklevel = 2) | ||
86 | |||
87 | def fire_class_handlers(event, d): | 76 | def fire_class_handlers(event, d): |
88 | if isinstance(event, logging.LogRecord): | 77 | if isinstance(event, logging.LogRecord): |
89 | return | 78 | return |