summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/widgets.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-10 16:13:50 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 23:32:41 +0100
commit337c8af55dac929b72e0bb32ef320cbb4b0e7892 (patch)
treec6ac60d617adaab7e5e1f9bbfde434f70fd2cdac /bitbake/lib/toaster/toastergui/widgets.py
parent4fe7e92056d662598d105f2e89f944fd1c981c2c (diff)
downloadpoky-337c8af55dac929b72e0bb32ef320cbb4b0e7892.tar.gz
bitbake: toaster: use items and range instead of old APIs
Used items() and range() APIs instead of iteritems() and xrange() as latter don't exist in python 3 [YOCTO #9584] (Bitbake rev: f44986d41055ce7fa3128e1acb6968f9ccc355ba) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/widgets.py')
-rw-r--r--bitbake/lib/toaster/toastergui/widgets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py
index 0f103505b2..c02f9f56ae 100644
--- a/bitbake/lib/toaster/toastergui/widgets.py
+++ b/bitbake/lib/toaster/toastergui/widgets.py
@@ -281,12 +281,12 @@ class ToasterTable(TemplateView):
281 # Make a unique cache name 281 # Make a unique cache name
282 cache_name = self.__class__.__name__ 282 cache_name = self.__class__.__name__
283 283
284 for key, val in request.GET.iteritems(): 284 for key, val in request.GET.items():
285 if key == 'nocache': 285 if key == 'nocache':
286 continue 286 continue
287 cache_name = cache_name + str(key) + str(val) 287 cache_name = cache_name + str(key) + str(val)
288 288
289 for key, val in kwargs.iteritems(): 289 for key, val in kwargs.items():
290 cache_name = cache_name + str(key) + str(val) 290 cache_name = cache_name + str(key) + str(val)
291 291
292 # No special chars allowed in the cache name apart from dash 292 # No special chars allowed in the cache name apart from dash