diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-03-31 08:52:41 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-03-31 09:05:07 -0700 |
commit | 5ead16f14f996bcbb2fb14277b8ce5a9317b8160 (patch) | |
tree | 41f982a88d5d9eba3b02c7e49b2f3057652f7127 /lib/bb/event.py | |
parent | 424d7e267b009cc19b8503eadab782736d9597d0 (diff) | |
download | bitbake-5ead16f14f996bcbb2fb14277b8ce5a9317b8160.tar.gz |
Add & utilize a simple_exec utility function
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r-- | lib/bb/event.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py index 8559858f0..f49f71cf7 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -58,7 +58,7 @@ def fire_class_handlers(event, d): event.data = d if type(h).__name__ == "code": locals = {"e": event} - exec h in bb.utils._context, locals + bb.utils.simple_exec(h, locals) bb.utils.better_eval("tmpHandler(e)", locals) else: h(event) |