summaryrefslogtreecommitdiffstats
path: root/scripts
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 /scripts
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 'scripts')
-rw-r--r--scripts/lib/devtool/standard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 18847cf4ee..d6186b9ece 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -837,7 +837,7 @@ def _get_patchset_revs(args, srctree, recipe_path):
837 stdout, _ = bb.process.run('git rev-list --reverse %s..HEAD' % 837 stdout, _ = bb.process.run('git rev-list --reverse %s..HEAD' %
838 initial_rev, cwd=srctree) 838 initial_rev, cwd=srctree)
839 newcommits = stdout.split() 839 newcommits = stdout.split()
840 for i in xrange(min(len(commits), len(newcommits))): 840 for i in range(min(len(commits), len(newcommits))):
841 if newcommits[i] == commits[i]: 841 if newcommits[i] == commits[i]:
842 update_rev = commits[i] 842 update_rev = commits[i]
843 843
@@ -863,7 +863,7 @@ def _remove_file_entries(srcuri, filelist):
863 entries = [] 863 entries = []
864 for fname in filelist: 864 for fname in filelist:
865 basename = os.path.basename(fname) 865 basename = os.path.basename(fname)
866 for i in xrange(len(srcuri)): 866 for i in range(len(srcuri)):
867 if (srcuri[i].startswith('file://') and 867 if (srcuri[i].startswith('file://') and
868 os.path.basename(srcuri[i].split(';')[0]) == basename): 868 os.path.basename(srcuri[i].split(';')[0]) == basename):
869 entries.append(srcuri[i]) 869 entries.append(srcuri[i])