diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-10 16:13:50 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-16 23:32:41 +0100 |
commit | 337c8af55dac929b72e0bb32ef320cbb4b0e7892 (patch) | |
tree | c6ac60d617adaab7e5e1f9bbfde434f70fd2cdac /bitbake/lib/toaster/toastergui/views.py | |
parent | 4fe7e92056d662598d105f2e89f944fd1c981c2c (diff) | |
download | poky-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/views.py')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 22d1a0ce6a..b256db7b44 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -2279,7 +2279,7 @@ if True: | |||
2279 | # Strip trailing/leading whitespace from all values | 2279 | # Strip trailing/leading whitespace from all values |
2280 | # put into a new dict because POST one is immutable | 2280 | # put into a new dict because POST one is immutable |
2281 | post_data = dict() | 2281 | post_data = dict() |
2282 | for key,val in request.POST.iteritems(): | 2282 | for key,val in request.POST.items(): |
2283 | post_data[key] = val.strip() | 2283 | post_data[key] = val.strip() |
2284 | 2284 | ||
2285 | 2285 | ||