[oe-commits] [bitbake] 07/13: eventreplay: reorganize imports
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 7 13:30:32 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit a6596f92b3aea27de052bb0b621a0cf095ccce4c
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Wed Jul 6 12:00:33 2016 +0100
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 at linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
bin/toaster-eventreplay | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/bin/toaster-eventreplay b/bin/toaster-eventreplay
index b9ab79e..7de3967 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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list