diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-19 19:30:49 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:52 +0000 |
commit | 93e20c51c4cbb345119b83a964409932af417df3 (patch) | |
tree | 83b0762892190632b5eb8b69653367b2b2f14e2a /bitbake/lib/bb/build.py | |
parent | 4dc97cb8459a28b6e5af06678960a06dc0a45b5e (diff) | |
download | poky-93e20c51c4cbb345119b83a964409932af417df3.tar.gz |
Use os.devnull, not /dev/null
(Bitbake rev: ce5ab0fc524a1c2c48c4c39d6fc8aae23019207b)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 4f8ac9573b..44ad3965a2 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -38,8 +38,7 @@ from bb import data, event, mkdirhier, utils | |||
38 | bblogger = logging.getLogger('BitBake') | 38 | bblogger = logging.getLogger('BitBake') |
39 | logger = logging.getLogger('BitBake.Build') | 39 | logger = logging.getLogger('BitBake.Build') |
40 | 40 | ||
41 | NULL = open('/dev/null', 'r') | 41 | NULL = open(os.devnull, 'r+') |
42 | |||
43 | 42 | ||
44 | # When we execute a python function we'd like certain things | 43 | # When we execute a python function we'd like certain things |
45 | # in all namespaces, hence we add them to __builtins__ | 44 | # in all namespaces, hence we add them to __builtins__ |