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-06-02 08:24:04 +0100
commit314541f60041adff40be32fdfa3f426133c657ca (patch)
treea59c265b4798d3449e7326f594b14a4465e91fcd /bitbake/lib/toaster/toastergui/widgets.py
parent96ce54315056ddba15b67d943a3778181b765bce (diff)
downloadpoky-314541f60041adff40be32fdfa3f426133c657ca.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: 372dd3abcb201bd9ac2c3189c5505d3578ce0dd0) 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 0f972d940e..19850fbcf4 100644
--- a/bitbake/lib/toaster/toastergui/widgets.py
+++ b/bitbake/lib/toaster/toastergui/widgets.py
@@ -278,12 +278,12 @@ class ToasterTable(TemplateView):
278 # Make a unique cache name 278 # Make a unique cache name
279 cache_name = self.__class__.__name__ 279 cache_name = self.__class__.__name__
280 280
281 for key, val in request.GET.iteritems(): 281 for key, val in request.GET.items():
282 if key == 'nocache': 282 if key == 'nocache':
283 continue 283 continue
284 cache_name = cache_name + str(key) + str(val) 284 cache_name = cache_name + str(key) + str(val)
285 285
286 for key, val in kwargs.iteritems(): 286 for key, val in kwargs.items():
287 cache_name = cache_name + str(key) + str(val) 287 cache_name = cache_name + str(key) + str(val)
288 288
289 # No special chars allowed in the cache name apart from dash 289 # No special chars allowed in the cache name apart from dash