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:50 +0100 |
commit | 73cf0335c463758379765fa5f26a4484afaca8a0 (patch) | |
tree | eed499207c71f925dfad21d1c4e58cbb1ec22d53 /meta/lib/oe | |
parent | 7b2c67874e03bc378c6def5cf1558238134e1b61 (diff) | |
download | poky-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.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 e50f453de5..4cc0e02968 100644 --- a/meta/lib/oe/data.py +++ b/meta/lib/oe/data.py | |||
@@ -1,5 +1,4 @@ | |||
1 | import oe.maketype | 1 | import oe.maketype |
2 | import bb.msg | ||
3 | 2 | ||
4 | def typed_value(key, d): | 3 | def 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 | |||
5 | the arguments of the type's factory for details. | 5 | the arguments of the type's factory for details. |
6 | """ | 6 | """ |
7 | 7 | ||
8 | import bb | ||
9 | import inspect | 8 | import inspect |
10 | import types | 9 | import 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 @@ | |||
1 | import os | ||
2 | import bb.data | ||
3 | import codecs | 1 | import codecs |
4 | 2 | ||
5 | def packaged(pkg, d): | 3 | 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 @@ | |||
1 | import oe.path | 1 | import oe.path |
2 | import os | ||
3 | import bb.utils, bb.msg, bb.data, bb.fetch2 | ||
4 | 2 | ||
5 | class NotFoundError(bb.BBHandledException): | 3 | class 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 @@ | |||
1 | import bb | ||
2 | import errno | 1 | import errno |
3 | import glob | 2 | import glob |
4 | import os | ||
5 | import shutil | 3 | import shutil |
6 | import subprocess | 4 | import 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 @@ | |||
1 | import bb | ||
2 | 1 | ||
3 | def prserv_make_conn(d, check = False): | 2 | def 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 @@ | |||
1 | import logging | 1 | import logging |
2 | import os | ||
3 | import oe.classutils | 2 | import oe.classutils |
4 | import shlex | 3 | import shlex |
5 | from bb.process import Popen, ExecutionError | 4 | 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 @@ | |||
1 | import bb, bb.data | ||
2 | |||
3 | def read_file(filename): | 1 | def read_file(filename): |
4 | try: | 2 | try: |
5 | f = file( filename, "r" ) | 3 | f = file( filename, "r" ) |