diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-07-06 12:00:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-08 09:57:28 +0100 |
commit | 2b56c032646897da5cf6a23d178d34df67cddc3c (patch) | |
tree | a3b4542ea2801f0a59efffd2b73602812e4fabd0 /bitbake/bin/toaster-eventreplay | |
parent | 9431a6f318aaeda5f90f44f81a978daf50a76e4e (diff) | |
download | poky-2b56c032646897da5cf6a23d178d34df67cddc3c.tar.gz |
bitbake: eventreplay: reorganize imports
Cleaned up module imports:
- Removed unused imports
- Removed import of print_function
- Removed duplicated imports
- Splitted importing bb.lib to 2 lines
(Bitbake rev: 332f5c9b20149e9f5757433df9458ce582ff32dd)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/toaster-eventreplay')
-rwxr-xr-x | bitbake/bin/toaster-eventreplay | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/bitbake/bin/toaster-eventreplay b/bitbake/bin/toaster-eventreplay index b9ab79e422..7de3967fe3 100755 --- a/bitbake/bin/toaster-eventreplay +++ b/bitbake/bin/toaster-eventreplay | |||
@@ -26,24 +26,19 @@ | |||
26 | # as a build eventlog, and the ToasterUI is used to process events in the file | 26 | # as a build eventlog, and the ToasterUI is used to process events in the file |
27 | # and log data in the database | 27 | # and log data in the database |
28 | 28 | ||
29 | from __future__ import print_function | 29 | import sys |
30 | import os | 30 | import json |
31 | import sys, logging | 31 | import pickle |
32 | import codecs | 32 | import codecs |
33 | |||
33 | from collections import namedtuple | 34 | from collections import namedtuple |
34 | 35 | ||
35 | # mangle syspath to allow easy import of modules | 36 | # mangle syspath to allow easy import of modules |
36 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), | 37 | from os.path import join, dirname, abspath |
37 | 'lib')) | 38 | sys.path.insert(0, join(dirname(dirname(abspath(__file__))), 'lib')) |
38 | |||
39 | 39 | ||
40 | import bb.cooker | 40 | import bb.cooker |
41 | from bb.ui import toasterui | 41 | from bb.ui import toasterui |
42 | import sys | ||
43 | import logging | ||
44 | |||
45 | import json, pickle | ||
46 | |||
47 | 42 | ||
48 | class FileReadEventsServerConnection(): | 43 | class FileReadEventsServerConnection(): |
49 | """ Emulates a connection to a bitbake server that feeds | 44 | """ Emulates a connection to a bitbake server that feeds |