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/bitbake-dumpsig | |
| 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/bitbake-dumpsig')
| -rwxr-xr-x | bitbake/bin/bitbake-dumpsig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-dumpsig b/bitbake/bin/bitbake-dumpsig index ffaed1f457..58ba1cad04 100755 --- a/bitbake/bin/bitbake-dumpsig +++ b/bitbake/bin/bitbake-dumpsig | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python3 |
| 2 | 2 | ||
| 3 | # bitbake-dumpsig | 3 | # bitbake-dumpsig |
| 4 | # BitBake task signature dump utility | 4 | # BitBake task signature dump utility |
| @@ -23,6 +23,7 @@ import sys | |||
| 23 | import warnings | 23 | import warnings |
| 24 | import optparse | 24 | import optparse |
| 25 | import logging | 25 | import logging |
| 26 | import pickle | ||
| 26 | 27 | ||
| 27 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) | 28 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) |
| 28 | 29 | ||
| @@ -51,7 +52,6 @@ options, args = parser.parse_args(sys.argv) | |||
| 51 | if len(args) == 1: | 52 | if len(args) == 1: |
| 52 | parser.print_help() | 53 | parser.print_help() |
| 53 | else: | 54 | else: |
| 54 | import cPickle | ||
| 55 | try: | 55 | try: |
| 56 | output = bb.siggen.dump_sigfile(args[1]) | 56 | output = bb.siggen.dump_sigfile(args[1]) |
| 57 | except IOError as e: | 57 | except IOError as e: |
