summaryrefslogtreecommitdiff
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-09-03 10:49:33 +0000
committerRoss Burton <ross@openedhand.com>2007-09-03 10:49:33 +0000
commit96940234462e2615c85e1b81f641eb85be5be0d4 (patch)
treedc662ae61c9a4a0f013ee7b29873f98b0ecec8db /meta/classes/insane.bbclass
parent263cce7db2f40fe4191472d5e9d4108211547595 (diff)
downloadopenembedded-core-96940234462e2615c85e1b81f641eb85be5be0d4.tar.gz
openembedded-core-96940234462e2615c85e1b81f641eb85be5be0d4.tar.bz2
openembedded-core-96940234462e2615c85e1b81f641eb85be5be0d4.tar.xz
openembedded-core-96940234462e2615c85e1b81f641eb85be5be0d4.zip
insane.bbclass: don't raise strings, but exceptions
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2679 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index cf74810f3..fb1d44b6e 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -101,7 +101,7 @@ def package_qa_get_elf(path, bits32):
def my_assert(expectation, result):
if not expectation == result:
#print "'%x','%x'" % (ord(expectation), ord(result))
- raise "This does not work as expected"
+ raise Exception("This does not work as expected")
my_assert = staticmethod(my_assert)
def __init__(self, name):
@@ -124,13 +124,13 @@ def package_qa_get_elf(path, bits32):
self.sex = self.data[ELFFile.EI_DATA]
if self.sex == chr(ELFFile.ELFDATANONE):
- raise "Can't be"
+ raise Exception("self.sex == ELFDATANONE")
elif self.sex == chr(ELFFile.ELFDATA2LSB):
self.sex = "<"
elif self.sex == chr(ELFFile.ELFDATA2MSB):
self.sex = ">"
else:
- raise "Even more worse"
+ raise Exception("Unknown self.sex")
def osAbi(self):
return ord(self.data[ELFFile.EI_OSABI])