summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-16 07:51:53 -0700
committerChris Larson <chris_larson@mentor.com>2010-12-16 07:52:35 -0700
commit0ea334430d492f82896c8b114dd3da214a37ae99 (patch)
treeb08d9feeee4f2ecf98181fffcd38ea3eb00becc6
parentef97bd82a3e18efde30c6a4973c957924ef353cb (diff)
downloadbitbake-0ea334430d492f82896c8b114dd3da214a37ae99.tar.gz
Revert "build: kill stdout in python functions"
We have a better solution for this on the separate-ui-and-server branch, so this version is no longer necessary. This reverts commit 20929afdd87e5124891f121c3640aa9efa368c2c. Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--lib/bb/build.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 84b44311d..638a6cd70 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -187,9 +187,6 @@ def exec_func_python(func, d, runfile, logfile, cwd=None):
if cwd:
os.chdir(cwd)
- stdout, stderr = sys.stdout, sys.stderr
- sys.stdout, sys.stderr = NULL, NULL
-
handler = logging.StreamHandler(logfile)
handler.setFormatter(logformatter)
bblogger.addHandler(handler)
@@ -204,7 +201,6 @@ def exec_func_python(func, d, runfile, logfile, cwd=None):
raise FuncFailed(func, None)
finally:
bblogger.removeHandler(handler)
- sys.stdout, sys.stderr = stdout, stderr
os.chdir(olddir)
def exec_func_shell(function, d, runfile, logfile, cwd=None, fakeroot=False):