summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-20 11:56:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:24:00 +0100
commit642a997adee8f12ed640a03ead8fdd73ca0f6ab1 (patch)
tree7073db3254086641b0a33459ed897c6c5f6fab7c /meta/lib
parent44e9a0d2fa759dea281fc32b602cd7878000c277 (diff)
downloadpoky-642a997adee8f12ed640a03ead8fdd73ca0f6ab1.tar.gz
classes/lib: Update xrange -> range for python3
xrange() no longer exists in python 3, use range() (From OE-Core rev: d022b4335100612d6596cc4c4956cb98ed5873cc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/recipeutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 146fe83e18..632184fcd9 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -568,14 +568,14 @@ def bbappend_recipe(rd, destlayerdir, srcfiles, install=None, wildcardver=False,
568 raise Exception('Invalid extralines value passed') 568 raise Exception('Invalid extralines value passed')
569 569
570 def popline(varname): 570 def popline(varname):
571 for i in xrange(0, len(bbappendlines)): 571 for i in range(0, len(bbappendlines)):
572 if bbappendlines[i][0] == varname: 572 if bbappendlines[i][0] == varname:
573 line = bbappendlines.pop(i) 573 line = bbappendlines.pop(i)
574 return line 574 return line
575 return None 575 return None
576 576
577 def appendline(varname, op, value): 577 def appendline(varname, op, value):
578 for i in xrange(0, len(bbappendlines)): 578 for i in range(0, len(bbappendlines)):
579 item = bbappendlines[i] 579 item = bbappendlines[i]
580 if item[0] == varname: 580 if item[0] == varname:
581 bbappendlines[i] = (item[0], item[1], item[2] + ' ' + value) 581 bbappendlines[i] = (item[0], item[1], item[2] + ' ' + value)