diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-12 08:30:35 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:02 +0100 |
| commit | 0f2c59367a649de5f57acdccfb4f1fdba9cde730 (patch) | |
| tree | 7a3558a3e08e690fbb0b5bdc4044316f9ab4bbcb /bitbake/bin/image-writer | |
| parent | ef1df516512587ad415f76a9626620992d660e45 (diff) | |
| download | poky-0f2c59367a649de5f57acdccfb4f1fdba9cde730.tar.gz | |
bitbake: bitbake: Convert to python 3
Various misc changes to convert bitbake to python3 which don't warrant
separation into separate commits.
(Bitbake rev: d0f904d407f57998419bd9c305ce53e5eaa36b24)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/image-writer')
| -rwxr-xr-x | bitbake/bin/image-writer | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/bin/image-writer b/bitbake/bin/image-writer index e30ab45e31..7ab1d8c979 100755 --- a/bitbake/bin/image-writer +++ b/bitbake/bin/image-writer | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python3 |
| 2 | 2 | ||
| 3 | # Copyright (c) 2012 Wind River Systems, Inc. | 3 | # Copyright (c) 2012 Wind River Systems, Inc. |
| 4 | # | 4 | # |
| @@ -24,9 +24,13 @@ try: | |||
| 24 | except RuntimeError as exc: | 24 | except RuntimeError as exc: |
| 25 | sys.exit(str(exc)) | 25 | sys.exit(str(exc)) |
| 26 | 26 | ||
| 27 | from gi import pygtkcompat | ||
| 28 | |||
| 29 | pygtkcompat.enable() | ||
| 30 | pygtkcompat.enable_gtk(version='3.0') | ||
| 31 | |||
| 27 | import gtk | 32 | import gtk |
| 28 | import optparse | 33 | import optparse |
| 29 | import pygtk | ||
| 30 | 34 | ||
| 31 | from bb.ui.crumbs.hobwidget import HobAltButton, HobButton | 35 | from bb.ui.crumbs.hobwidget import HobAltButton, HobButton |
| 32 | from bb.ui.crumbs.hig.crumbsmessagedialog import CrumbsMessageDialog | 36 | from bb.ui.crumbs.hig.crumbsmessagedialog import CrumbsMessageDialog |
