summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
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:50 +0100
commit73cf0335c463758379765fa5f26a4484afaca8a0 (patch)
treeeed499207c71f925dfad21d1c4e58cbb1ec22d53 /meta/lib/oe
parent7b2c67874e03bc378c6def5cf1558238134e1b61 (diff)
downloadpoky-73cf0335c463758379765fa5f26a4484afaca8a0.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. (From OE-Core rev: 7d674820958be3a7051ea619effe1a6061d9cbe2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-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 @@
1import oe.maketype 1import oe.maketype
2import bb.msg
3 2
4def typed_value(key, d): 3def typed_value(key, d):
5 """Construct a value for the specified metadata variable, using its flags 4 """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
5the arguments of the type's factory for details. 5the arguments of the type's factory for details.
6""" 6"""
7 7
8import bb
9import inspect 8import inspect
10import types 9import types
11 10
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 @@
1import os
2import bb.data
3import codecs 1import codecs
4 2
5def packaged(pkg, d): 3def 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 @@
1import oe.path 1import oe.path
2import os
3import bb.utils, bb.msg, bb.data, bb.fetch2
4 2
5class NotFoundError(bb.BBHandledException): 3class NotFoundError(bb.BBHandledException):
6 def __init__(self, path): 4 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 @@
1import bb
2import errno 1import errno
3import glob 2import glob
4import os
5import shutil 3import shutil
6import subprocess 4import subprocess
7 5
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 @@
1import bb
2 1
3def prserv_make_conn(d, check = False): 2def prserv_make_conn(d, check = False):
4 import prserv.serv 3 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 @@
1import logging 1import logging
2import os
3import oe.classutils 2import oe.classutils
4import shlex 3import shlex
5from bb.process import Popen, ExecutionError 4from 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 @@
1import bb, bb.data
2
3def read_file(filename): 1def read_file(filename):
4 try: 2 try:
5 f = file( filename, "r" ) 3 f = file( filename, "r" )