aboutsummaryrefslogtreecommitdiffstats
path: root/bin/oe/data.py
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-04-01 21:50:26 +0000
committerChris Larson <clarson@kergoth.com>2004-04-01 21:50:26 +0000
commitcb8d27888ac80f7dde3f41879fb7fe7331895bb5 (patch)
tree5e2f5c935f4d5f6396b72b036b0b50e125e63de5 /bin/oe/data.py
parentee6907e428a28b629351bdee4fc2793f451b129e (diff)
downloadbitbake-cb8d27888ac80f7dde3f41879fb7fe7331895bb5.tar.gz
Auto merged
Diffstat (limited to 'bin/oe/data.py')
-rw-r--r--bin/oe/data.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/oe/data.py b/bin/oe/data.py
index 5d95ebae5..9f018524f 100644
--- a/bin/oe/data.py
+++ b/bin/oe/data.py
@@ -297,7 +297,7 @@ def inheritFromOS(d = _data):
except TypeError:
pass
-import sys, string
+import sys
def emit_var(var, o=sys.__stdout__, d = _data):
"""Emit a variable to be sourced by a shell."""
@@ -389,7 +389,7 @@ def update_data(d = _data):
# can't do delete env[...] while iterating over the dictionary, so remember them
dodel = []
- overrides = string.split(getVar('OVERRIDES', d, 1) or "", ":") or []
+ overrides = (getVar('OVERRIDES', d, 1) or "").split(':') or []
def applyOverrides(var, d = _data):
if not overrides:
@@ -431,8 +431,8 @@ def update_data(d = _data):
sval = getVar(s, d)
if sval:
new = ''
- pattern = string.replace(nameval,"\n","").strip()
- for line in string.split(sval,"\n"):
+ pattern = nameval.replace('\n','').strip()
+ for line in sval.split('\n'):
if line.find(pattern) == -1:
new = new + '\n' + line
setVar(s, new, d)