From fce8da957fd2bbf1c3b02dfe34bc18a0bce37d65 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 11 May 2016 22:54:22 +0100 Subject: bitbake: daemonize/prserv/tests/fetch: Convert file() -> open() Use python3 compatible functions. (Bitbake rev: e6a0296ba29c3fbc8417d1df7a01d50562668a41) Signed-off-by: Richard Purdie --- bitbake/lib/bb/daemonize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/daemonize.py') 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): # os.dup2(0, 2) # standard error (2) - si = file('/dev/null', 'r') - so = file(logfile, 'w') + si = open('/dev/null', 'r') + so = open(logfile, 'w') se = so -- cgit v1.2.3-54-g00ecf