diff options
author | Ross Burton <ross@openedhand.com> | 2007-09-03 10:49:33 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-09-03 10:49:33 +0000 |
commit | 96940234462e2615c85e1b81f641eb85be5be0d4 (patch) | |
tree | dc662ae61c9a4a0f013ee7b29873f98b0ecec8db /meta/classes | |
parent | 263cce7db2f40fe4191472d5e9d4108211547595 (diff) | |
download | poky-96940234462e2615c85e1b81f641eb85be5be0d4.tar.gz |
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')
-rw-r--r-- | meta/classes/insane.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index cf74810f3e..fb1d44b6e6 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -101,7 +101,7 @@ def package_qa_get_elf(path, bits32): | |||
101 | def my_assert(expectation, result): | 101 | def my_assert(expectation, result): |
102 | if not expectation == result: | 102 | if not expectation == result: |
103 | #print "'%x','%x'" % (ord(expectation), ord(result)) | 103 | #print "'%x','%x'" % (ord(expectation), ord(result)) |
104 | raise "This does not work as expected" | 104 | raise Exception("This does not work as expected") |
105 | my_assert = staticmethod(my_assert) | 105 | my_assert = staticmethod(my_assert) |
106 | 106 | ||
107 | def __init__(self, name): | 107 | def __init__(self, name): |
@@ -124,13 +124,13 @@ def package_qa_get_elf(path, bits32): | |||
124 | 124 | ||
125 | self.sex = self.data[ELFFile.EI_DATA] | 125 | self.sex = self.data[ELFFile.EI_DATA] |
126 | if self.sex == chr(ELFFile.ELFDATANONE): | 126 | if self.sex == chr(ELFFile.ELFDATANONE): |
127 | raise "Can't be" | 127 | raise Exception("self.sex == ELFDATANONE") |
128 | elif self.sex == chr(ELFFile.ELFDATA2LSB): | 128 | elif self.sex == chr(ELFFile.ELFDATA2LSB): |
129 | self.sex = "<" | 129 | self.sex = "<" |
130 | elif self.sex == chr(ELFFile.ELFDATA2MSB): | 130 | elif self.sex == chr(ELFFile.ELFDATA2MSB): |
131 | self.sex = ">" | 131 | self.sex = ">" |
132 | else: | 132 | else: |
133 | raise "Even more worse" | 133 | raise Exception("Unknown self.sex") |
134 | 134 | ||
135 | def osAbi(self): | 135 | def osAbi(self): |
136 | return ord(self.data[ELFFile.EI_OSABI]) | 136 | return ord(self.data[ELFFile.EI_OSABI]) |