summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-01-03 20:57:23 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 15:00:22 +0000
commitc0a11db8777eab89bcae3482fcc075a8f6a6aa2a (patch)
tree8146d2a537df8b480f74c2956b3fb577670a6a6f /bitbake/lib/bb
parentaae85325289a83d21606621310894d5d6f56b50a (diff)
downloadopenembedded-core-c0a11db8777eab89bcae3482fcc075a8f6a6aa2a.tar.gz
openembedded-core-c0a11db8777eab89bcae3482fcc075a8f6a6aa2a.tar.bz2
openembedded-core-c0a11db8777eab89bcae3482fcc075a8f6a6aa2a.tar.xz
openembedded-core-c0a11db8777eab89bcae3482fcc075a8f6a6aa2a.zip
event: fix unicode handler registration
(Bitbake rev: 413af91e56a6d2368f6cbe22c0e2a337e1289e55) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/event.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 1d0fb7bfd..3866e01f2 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -147,7 +147,7 @@ def register(name, handler):
if handler is not None:
# handle string containing python code
- if type(handler).__name__ == "str":
+ if isinstance(handler, basestring):
tmp = "def tmpHandler(e):\n%s" % handler
comp = bb.utils.better_compile(tmp, "tmpHandler(e)", "bb.event._registerCode")
_handlers[name] = comp