diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-11 22:54:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-13 13:41:32 +0100 |
commit | fce8da957fd2bbf1c3b02dfe34bc18a0bce37d65 (patch) | |
tree | 8e269c8576aac8fe7cd284ae3241271340c3d733 /bitbake/lib/bb/tests/fetch.py | |
parent | 9a309684cfff5e1de3dbcc9690fc73d344e63ecd (diff) | |
download | poky-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.py | 2 |
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): | |||
450 | class FetcherLocalTest(FetcherTest): | 450 | class 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() |