summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-09 14:05:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-11 10:34:30 +0100
commit3795f4d6a69dc4ba5208f1d05b89e65bc11d8a10 (patch)
tree363978673f3e06a03bc2f4a3cb629dd5011cf40a /bitbake/lib/toaster/toastergui/views.py
parenta9d90f74050e2129171da09ca3427720887f67ee (diff)
downloadpoky-3795f4d6a69dc4ba5208f1d05b89e65bc11d8a10.tar.gz
bitbake: bin, toaster: Fix print and exception syntax
This updates the print "" syntax to print() and fixes some exception handling syntax such that its compatible with python v2 and v3. (Bitbake rev: 58304fcce9727fd89564436771356c033ecd22a3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index bd5bf63341..b7c674a076 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -910,7 +910,7 @@ def _get_dir_entries(build_id, target_id, start):
910 response.append(entry) 910 response.append(entry)
911 911
912 except Exception as e: 912 except Exception as e:
913 print "Exception ", e 913 print("Exception ", e)
914 traceback.print_exc(e) 914 traceback.print_exc(e)
915 915
916 # sort by directories first, then by name 916 # sort by directories first, then by name