diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/prservice.py | 2 | ||||
-rw-r--r-- | meta/lib/oe/qa.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/prservice.py b/meta/lib/oe/prservice.py index 27883a7e90..b0cbcb1fbc 100644 --- a/meta/lib/oe/prservice.py +++ b/meta/lib/oe/prservice.py | |||
@@ -101,7 +101,7 @@ def prserv_export_tofile(d, metainfo, datainfo, lockdown, nomax=False): | |||
101 | for i in range(len(datainfo)): | 101 | for i in range(len(datainfo)): |
102 | pkgarch = datainfo[i]['pkgarch'] | 102 | pkgarch = datainfo[i]['pkgarch'] |
103 | value = datainfo[i]['value'] | 103 | value = datainfo[i]['value'] |
104 | if not idx.has_key(pkgarch): | 104 | if pkgarch not in idx: |
105 | idx[pkgarch] = i | 105 | idx[pkgarch] = i |
106 | elif value > datainfo[idx[pkgarch]]['value']: | 106 | elif value > datainfo[idx[pkgarch]]['value']: |
107 | idx[pkgarch] = i | 107 | idx[pkgarch] = i |
diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py index c4376f0161..d5cdaa0fcd 100644 --- a/meta/lib/oe/qa.py +++ b/meta/lib/oe/qa.py | |||
@@ -93,7 +93,7 @@ class ELFFile: | |||
93 | import bb.process | 93 | import bb.process |
94 | import sys | 94 | import sys |
95 | 95 | ||
96 | if self.objdump_output.has_key(cmd): | 96 | if cmd in self.objdump_output: |
97 | return self.objdump_output[cmd] | 97 | return self.objdump_output[cmd] |
98 | 98 | ||
99 | objdump = d.getVar('OBJDUMP', True) | 99 | objdump = d.getVar('OBJDUMP', True) |