mirror of
https://git.yoctoproject.org/poky
synced 2026-07-27 07:27:12 +00:00
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>
This commit is contained in:
@@ -53,7 +53,7 @@ class BEControllerTests(object):
|
||||
# setting layers, skip any layer info
|
||||
bc.setLayers(BITBAKE_LAYER, POKY_LAYERS)
|
||||
except NotImplementedError:
|
||||
print "Test skipped due to command not implemented yet"
|
||||
print("Test skipped due to command not implemented yet")
|
||||
return True
|
||||
# We are ok with the exception as we're handling the git already exists
|
||||
except BuildSetupException:
|
||||
@@ -79,7 +79,7 @@ class BEControllerTests(object):
|
||||
# setting layers, skip any layer info
|
||||
layerSet = bc.setLayers(BITBAKE_LAYER, POKY_LAYERS)
|
||||
except NotImplementedError:
|
||||
print "Test skipped due to command not implemented yet"
|
||||
print("Test skipped due to command not implemented yet")
|
||||
return True
|
||||
# We are ok with the exception as we're handling the git already exists
|
||||
except BuildSetupException:
|
||||
|
||||
Reference in New Issue
Block a user