1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 01:19:52 +00:00

bitbake: daemonize/prserv/tests/fetch: Convert file() -> open()

Use python3 compatible functions.

(Bitbake rev: e6a0296ba29c3fbc8417d1df7a01d50562668a41)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2016-05-11 22:54:22 +01:00
parent 9a309684cf
commit fce8da957f
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -450,7 +450,7 @@ class MirrorUriTest(FetcherTest):
class FetcherLocalTest(FetcherTest):
def setUp(self):
def touch(fn):
with file(fn, 'a'):
with open(fn, 'a'):
os.utime(fn, None)
super(FetcherLocalTest, self).setUp()