From c3d18afaa54fe81aef80e45ec3564f7318dd4966 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 7 May 2013 13:55:53 +0100 Subject: classes/recipes/lib: Fix various python whitespace issues There are some left over tab characters in the python functions. This removes them and resolves python 3 errors. (From OE-Core rev: fafeb381c48291fa65c634c01c244843c8d7fad3) Signed-off-by: Richard Purdie --- meta/lib/oe/qa.py | 2 +- meta/lib/oe/sstatesig.py | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'meta/lib') diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py index 4777ddc06a..c4376f0161 100644 --- a/meta/lib/oe/qa.py +++ b/meta/lib/oe/qa.py @@ -72,7 +72,7 @@ class ELFFile: return ord(self.data[ELFFile.EI_ABIVERSION]) def abiSize(self): - return self.bits + return self.bits def isLittleEndian(self): return self.sex == "<" diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index 79a410eecb..852fb7e64a 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py @@ -108,16 +108,16 @@ def find_siginfo(pn, taskname, taskhashlist, d): foundall = False import glob for fullpath in glob.glob(filespec): - match = False - if taskhashlist: - for taskhash in taskhashlist: - if fullpath.endswith('.%s' % taskhash): - hashfiles[taskhash] = fullpath - if len(hashfiles) == len(taskhashlist): - foundall = True - break - else: - filedates[fullpath] = os.stat(fullpath).st_mtime + match = False + if taskhashlist: + for taskhash in taskhashlist: + if fullpath.endswith('.%s' % taskhash): + hashfiles[taskhash] = fullpath + if len(hashfiles) == len(taskhashlist): + foundall = True + break + else: + filedates[fullpath] = os.stat(fullpath).st_mtime if len(filedates) < 2 and not foundall: # That didn't work, look in sstate-cache -- cgit v1.2.3-54-g00ecf