summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-07-06 12:00:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 09:57:06 +0100
commit332f5c9b20149e9f5757433df9458ce582ff32dd (patch)
treed6c9bc21c7d292868e193844a8d01bc3879360e5 /bin
parent5d4df14b0d38f6c89ca16de6dada58b4bb015d71 (diff)
downloadbitbake-contrib-332f5c9b20149e9f5757433df9458ce582ff32dd.tar.gz
bitbake-contrib-332f5c9b20149e9f5757433df9458ce582ff32dd.tar.bz2
bitbake-contrib-332f5c9b20149e9f5757433df9458ce582ff32dd.zip
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 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 'bin')
-rwxr-xr-xbin/toaster-eventreplay17
1 files changed, 6 insertions, 11 deletions
diff --git a/bin/toaster-eventreplay b/bin/toaster-eventreplay
index b9ab79e422..7de3967fe3 100755
--- a/bin/toaster-eventreplay
+++ b/bin/toaster-eventreplay
@@ -26,24 +26,19 @@
# as a build eventlog, and the ToasterUI is used to process events in the file
# and log data in the database
-from __future__ import print_function
-import os
-import sys, logging
+import sys
+import json
+import pickle
import codecs
+
from collections import namedtuple
# 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__))),
- 'lib'))
-
+from os.path import join, dirname, abspath
+sys.path.insert(0, join(dirname(dirname(abspath(__file__))), 'lib'))
import bb.cooker
from bb.ui import toasterui
-import sys
-import logging
-
-import json, pickle
-
class FileReadEventsServerConnection():
""" Emulates a connection to a bitbake server that feeds