summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/fetch.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/tests/fetch.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/tests/fetch.py')
-rw-r--r--bitbake/lib/bb/tests/fetch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index 4ba688bfea..cba783f5ab 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -450,7 +450,7 @@ class MirrorUriTest(FetcherTest):
450class FetcherLocalTest(FetcherTest): 450class FetcherLocalTest(FetcherTest):
451 def setUp(self): 451 def setUp(self):
452 def touch(fn): 452 def touch(fn):
453 with file(fn, 'a'): 453 with open(fn, 'a'):
454 os.utime(fn, None) 454 os.utime(fn, None)
455 455
456 super(FetcherLocalTest, self).setUp() 456 super(FetcherLocalTest, self).setUp()