diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-02 13:12:48 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 11:45:58 +0100 |
commit | 438eabc248f272e3d272aecaa4c9cec177b172d5 (patch) | |
tree | 5be184533b66ee841de8dfe9f455382886e7b867 /scripts/tiny/ksize.py | |
parent | 874a269eb1d70060c2f3b3f8b70800e2aea789f4 (diff) | |
download | openembedded-core-contrib-438eabc248f272e3d272aecaa4c9cec177b172d5.tar.gz |
scripts: python3: use new style except statement
Changed old syle except statements 'except <exception>, var'
to new style 'except <exception> as var' as old style is not
supported in python3.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/tiny/ksize.py')
-rwxr-xr-x | scripts/tiny/ksize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tiny/ksize.py b/scripts/tiny/ksize.py index 275c983b8d7..54b71f8e074 100755 --- a/scripts/tiny/ksize.py +++ b/scripts/tiny/ksize.py @@ -133,7 +133,7 @@ class Report: def main(): try: opts, args = getopt.getopt(sys.argv[1:], "dh", ["help"]) - except getopt.GetoptError, err: + except getopt.GetoptError as err: print('%s' % str(err)) usage() sys.exit(2) |