summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/daemonize.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-11 22:54:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-13 13:41:32 +0100
commitfce8da957fd2bbf1c3b02dfe34bc18a0bce37d65 (patch)
tree8e269c8576aac8fe7cd284ae3241271340c3d733 /bitbake/lib/bb/daemonize.py
parent9a309684cfff5e1de3dbcc9690fc73d344e63ecd (diff)
downloadpoky-fce8da957fd2bbf1c3b02dfe34bc18a0bce37d65.tar.gz
bitbake: daemonize/prserv/tests/fetch: Convert file() -> open()
Use python3 compatible functions. (Bitbake rev: e6a0296ba29c3fbc8417d1df7a01d50562668a41) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/daemonize.py')
-rw-r--r--bitbake/lib/bb/daemonize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/daemonize.py b/bitbake/lib/bb/daemonize.py
index 346a618582..ab4a954622 100644
--- a/bitbake/lib/bb/daemonize.py
+++ b/bitbake/lib/bb/daemonize.py
@@ -178,8 +178,8 @@ def createDaemon(function, logfile):
178# os.dup2(0, 2) # standard error (2) 178# os.dup2(0, 2) # standard error (2)
179 179
180 180
181 si = file('/dev/null', 'r') 181 si = open('/dev/null', 'r')
182 so = file(logfile, 'w') 182 so = open(logfile, 'w')
183 se = so 183 se = so
184 184
185 185