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>
This commit is contained in:
parent
9431a6f318
commit
2b56c03264
|
@ -26,24 +26,19 @@
|
||||||
# as a build eventlog, and the ToasterUI is used to process events in the file
|
# as a build eventlog, and the ToasterUI is used to process events in the file
|
||||||
# and log data in the database
|
# and log data in the database
|
||||||
|
|
||||||
from __future__ import print_function
|
import sys
|
||||||
import os
|
import json
|
||||||
import sys, logging
|
import pickle
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
# mangle syspath to allow easy import of modules
|
# mangle syspath to allow easy import of modules
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
|
from os.path import join, dirname, abspath
|
||||||
'lib'))
|
sys.path.insert(0, join(dirname(dirname(abspath(__file__))), 'lib'))
|
||||||
|
|
||||||
|
|
||||||
import bb.cooker
|
import bb.cooker
|
||||||
from bb.ui import toasterui
|
from bb.ui import toasterui
|
||||||
import sys
|
|
||||||
import logging
|
|
||||||
|
|
||||||
import json, pickle
|
|
||||||
|
|
||||||
|
|
||||||
class FileReadEventsServerConnection():
|
class FileReadEventsServerConnection():
|
||||||
""" Emulates a connection to a bitbake server that feeds
|
""" Emulates a connection to a bitbake server that feeds
|
||||||
|
|
Loading…
Reference in New Issue