1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +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
+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()