diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-18 13:08:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 12:24:05 +0100 |
commit | 7d674820958be3a7051ea619effe1a6061d9cbe2 (patch) | |
tree | 5ca9163652717746c8c79a88dbd0bcb047eea558 /meta/lib | |
parent | ca30b6587841f5e9a42aaedb8e0b89ff5a4a6a37 (diff) | |
download | openembedded-core-contrib-7d674820958be3a7051ea619effe1a6061d9cbe2.tar.gz |
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.py | 1 | ||||
-rw-r--r-- | meta/lib/oe/maketype.py | 1 | ||||
-rw-r--r-- | meta/lib/oe/packagedata.py | 2 | ||||
-rw-r--r-- | meta/lib/oe/patch.py | 2 | ||||
-rw-r--r-- | meta/lib/oe/path.py | 2 | ||||
-rw-r--r-- | meta/lib/oe/prservice.py | 1 | ||||
-rw-r--r-- | meta/lib/oe/terminal.py | 1 | ||||
-rw-r--r-- | meta/lib/oe/utils.py | 2 |
8 files changed, 0 insertions, 12 deletions
diff --git a/meta/lib/oe/data.py b/meta/lib/oe/data.py index e50f453de5f..4cc0e029684 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 0e9dbc67fb6..139f3336913 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 9a28e6b4dee..5f897ff31f9 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 17b7e1f27d2..bc86bb5391e 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 1fdfa8724fa..7197b236504 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 16785ce83d4..c3fb76a3389 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 28abf147b9f..31317985f58 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 8912dac3bb9..e14743f3f33 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" ) |