diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-09 14:05:09 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-11 10:34:30 +0100 |
commit | 3795f4d6a69dc4ba5208f1d05b89e65bc11d8a10 (patch) | |
tree | 363978673f3e06a03bc2f4a3cb629dd5011cf40a /bitbake/lib/toaster/toastermain/settings.py | |
parent | a9d90f74050e2129171da09ca3427720887f67ee (diff) | |
download | poky-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/toastermain/settings.py')
-rw-r--r-- | bitbake/lib/toaster/toastermain/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index 74ab60462b..8662f393a9 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/lib/toaster/toastermain/settings.py | |||
@@ -138,7 +138,7 @@ else: | |||
138 | try: | 138 | try: |
139 | if pytz.timezone(zonename) is not None: | 139 | if pytz.timezone(zonename) is not None: |
140 | zonefilelist[hashlib.md5(open(filepath).read()).hexdigest()] = zonename | 140 | zonefilelist[hashlib.md5(open(filepath).read()).hexdigest()] = zonename |
141 | except UnknownTimeZoneError, ValueError: | 141 | except UnknownTimeZoneError as ValueError: |
142 | # we expect timezone failures here, just move over | 142 | # we expect timezone failures here, just move over |
143 | pass | 143 | pass |
144 | except ImportError: | 144 | except ImportError: |