summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/taskdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-12 08:30:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:24:02 +0100
commit0f2c59367a649de5f57acdccfb4f1fdba9cde730 (patch)
tree7a3558a3e08e690fbb0b5bdc4044316f9ab4bbcb /bitbake/lib/bb/taskdata.py
parentef1df516512587ad415f76a9626620992d660e45 (diff)
downloadpoky-0f2c59367a649de5f57acdccfb4f1fdba9cde730.tar.gz
bitbake: bitbake: Convert to python 3
Various misc changes to convert bitbake to python3 which don't warrant separation into separate commits. (Bitbake rev: d0f904d407f57998419bd9c305ce53e5eaa36b24) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/taskdata.py')
-rw-r--r--bitbake/lib/bb/taskdata.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py
index 9ae52d77da..65628c86f2 100644
--- a/bitbake/lib/bb/taskdata.py
+++ b/bitbake/lib/bb/taskdata.py
@@ -446,7 +446,7 @@ class TaskData:
446 return 446 return
447 447
448 if not item in dataCache.providers: 448 if not item in dataCache.providers:
449 close_matches = self.get_close_matches(item, dataCache.providers.keys()) 449 close_matches = self.get_close_matches(item, list(dataCache.providers.keys()))
450 # Is it in RuntimeProviders ? 450 # Is it in RuntimeProviders ?
451 all_p = bb.providers.getRuntimeProviders(dataCache, item) 451 all_p = bb.providers.getRuntimeProviders(dataCache, item)
452 for fn in all_p: 452 for fn in all_p:
@@ -576,7 +576,7 @@ class TaskData:
576 dependees = self.get_dependees(targetid) 576 dependees = self.get_dependees(targetid)
577 for fnid in dependees: 577 for fnid in dependees:
578 self.fail_fnid(fnid, missing_list) 578 self.fail_fnid(fnid, missing_list)
579 for taskid in xrange(len(self.tasks_idepends)): 579 for taskid in range(len(self.tasks_idepends)):
580 idepends = self.tasks_idepends[taskid] 580 idepends = self.tasks_idepends[taskid]
581 for (idependid, idependtask) in idepends: 581 for (idependid, idependtask) in idepends:
582 if idependid == targetid: 582 if idependid == targetid:
@@ -602,7 +602,7 @@ class TaskData:
602 dependees = self.get_rdependees(targetid) 602 dependees = self.get_rdependees(targetid)
603 for fnid in dependees: 603 for fnid in dependees:
604 self.fail_fnid(fnid, missing_list) 604 self.fail_fnid(fnid, missing_list)
605 for taskid in xrange(len(self.tasks_irdepends)): 605 for taskid in range(len(self.tasks_irdepends)):
606 irdepends = self.tasks_irdepends[taskid] 606 irdepends = self.tasks_irdepends[taskid]
607 for (idependid, idependtask) in irdepends: 607 for (idependid, idependtask) in irdepends:
608 if idependid == targetid: 608 if idependid == targetid:
@@ -658,7 +658,7 @@ class TaskData:
658 logger.debug(3, ", ".join(self.run_names_index)) 658 logger.debug(3, ", ".join(self.run_names_index))
659 659
660 logger.debug(3, "build_targets:") 660 logger.debug(3, "build_targets:")
661 for buildid in xrange(len(self.build_names_index)): 661 for buildid in range(len(self.build_names_index)):
662 target = self.build_names_index[buildid] 662 target = self.build_names_index[buildid]
663 targets = "None" 663 targets = "None"
664 if buildid in self.build_targets: 664 if buildid in self.build_targets:
@@ -666,7 +666,7 @@ class TaskData:
666 logger.debug(3, " (%s)%s: %s", buildid, target, targets) 666 logger.debug(3, " (%s)%s: %s", buildid, target, targets)
667 667
668 logger.debug(3, "run_targets:") 668 logger.debug(3, "run_targets:")
669 for runid in xrange(len(self.run_names_index)): 669 for runid in range(len(self.run_names_index)):
670 target = self.run_names_index[runid] 670 target = self.run_names_index[runid]
671 targets = "None" 671 targets = "None"
672 if runid in self.run_targets: 672 if runid in self.run_targets:
@@ -674,7 +674,7 @@ class TaskData:
674 logger.debug(3, " (%s)%s: %s", runid, target, targets) 674 logger.debug(3, " (%s)%s: %s", runid, target, targets)
675 675
676 logger.debug(3, "tasks:") 676 logger.debug(3, "tasks:")
677 for task in xrange(len(self.tasks_name)): 677 for task in range(len(self.tasks_name)):
678 logger.debug(3, " (%s)%s - %s: %s", 678 logger.debug(3, " (%s)%s - %s: %s",
679 task, 679 task,
680 self.fn_index[self.tasks_fnid[task]], 680 self.fn_index[self.tasks_fnid[task]],