mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02: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:
@@ -138,7 +138,7 @@ else:
|
||||
try:
|
||||
if pytz.timezone(zonename) is not None:
|
||||
zonefilelist[hashlib.md5(open(filepath).read()).hexdigest()] = zonename
|
||||
except UnknownTimeZoneError, ValueError:
|
||||
except UnknownTimeZoneError as ValueError:
|
||||
# we expect timezone failures here, just move over
|
||||
pass
|
||||
except ImportError:
|
||||
|
||||
Reference in New Issue
Block a user