diff options
Diffstat (limited to 'meta')
-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]) |