summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-18 13:08:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-19 12:24:05 +0100
commit7d674820958be3a7051ea619effe1a6061d9cbe2 (patch)
tree5ca9163652717746c8c79a88dbd0bcb047eea558 /meta/lib
parentca30b6587841f5e9a42aaedb8e0b89ff5a4a6a37 (diff)
downloadopenembedded-core-7d674820958be3a7051ea619effe1a6061d9cbe2.tar.gz
openembedded-core-7d674820958be3a7051ea619effe1a6061d9cbe2.tar.bz2
openembedded-core-7d674820958be3a7051ea619effe1a6061d9cbe2.zip
Remove a number of unneeded import os/bb calls
The bb and os modules are always imported so having these extra import calls are a waste of space/execution time. They also set a bad example for people copy and pasting code so clean them up. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/data.py1
-rw-r--r--meta/lib/oe/maketype.py1
-rw-r--r--meta/lib/oe/packagedata.py2
-rw-r--r--meta/lib/oe/patch.py2
-rw-r--r--meta/lib/oe/path.py2
-rw-r--r--meta/lib/oe/prservice.py1
-rw-r--r--meta/lib/oe/terminal.py1
-rw-r--r--meta/lib/oe/utils.py2
8 files changed, 0 insertions, 12 deletions
diff --git a/meta/lib/oe/data.py b/meta/lib/oe/data.py
index e50f453de5..4cc0e02968 100644
--- a/meta/lib/oe/data.py
+++ b/meta/lib/oe/data.py
@@ -1,5 +1,4 @@
import oe.maketype
-import bb.msg
def typed_value(key, d):
"""Construct a value for the specified metadata variable, using its flags
diff --git a/meta/lib/oe/maketype.py b/meta/lib/oe/maketype.py
index 0e9dbc67fb..139f333691 100644
--- a/meta/lib/oe/maketype.py
+++ b/meta/lib/oe/maketype.py
@@ -5,7 +5,6 @@ variable. Other flags may be utilized in the construction of the types. See
the arguments of the type's factory for details.
"""
-import bb
import inspect
import types
diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py
index 9a28e6b4de..5f897ff31f 100644
--- a/meta/lib/oe/packagedata.py
+++ b/meta/lib/oe/packagedata.py
@@ -1,5 +1,3 @@
-import os
-import bb.data
import codecs
def packaged(pkg, d):
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index 17b7e1f27d..bc86bb5391 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -1,6 +1,4 @@
import oe.path
-import os
-import bb.utils, bb.msg, bb.data, bb.fetch2
class NotFoundError(bb.BBHandledException):
def __init__(self, path):
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index 1fdfa8724f..7197b23650 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -1,7 +1,5 @@
-import bb
import errno
import glob
-import os
import shutil
import subprocess
diff --git a/meta/lib/oe/prservice.py b/meta/lib/oe/prservice.py
index 16785ce83d..c3fb76a338 100644
--- a/meta/lib/oe/prservice.py
+++ b/meta/lib/oe/prservice.py
@@ -1,4 +1,3 @@
-import bb
def prserv_make_conn(d, check = False):
import prserv.serv
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index 28abf147b9..31317985f5 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -1,5 +1,4 @@
import logging
-import os
import oe.classutils
import shlex
from bb.process import Popen, ExecutionError
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 8912dac3bb..e14743f3f3 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -1,5 +1,3 @@
-import bb, bb.data
-
def read_file(filename):
try:
f = file( filename, "r" )