summaryrefslogtreecommitdiffstats
path: root/meta/classes/oelint.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 07:29:52 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 08:31:23 (GMT)
commit9094ea9fdd1f23cbc9f7a9d0d95fb330c5ea8906 (patch)
treeac254d468956292d45e9ab7ead3fbe16f1558f62 /meta/classes/oelint.bbclass
parentca2edae7c3585204a11f6d9d69351d37880bf761 (diff)
downloadpoky-9094ea9fdd1f23cbc9f7a9d0d95fb330c5ea8906.tar.gz
classes/oeqa: Update for print statements and file() -> open() for python3uninative-1.0
Found some more syntax cleanups needed for python3. (From OE-Core rev: 1181d86e8707c5b8e8d43d5e785d7d9cf01fa491) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/oelint.bbclass')
-rw-r--r--meta/classes/oelint.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/oelint.bbclass b/meta/classes/oelint.bbclass
index 1b051ca..c4febc2 100644
--- a/meta/classes/oelint.bbclass
+++ b/meta/classes/oelint.bbclass
@@ -45,7 +45,7 @@ python do_lint() {
45 45
46 def findKey(path, key): 46 def findKey(path, key):
47 ret = True 47 ret = True
48 f = file('%s' % path, mode = 'r') 48 f = open('%s' % path, mode = 'r')
49 line = f.readline() 49 line = f.readline()
50 while line: 50 while line:
51 if line.find(key) != -1: 51 if line.find(key) != -1: