diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/daemonize.py | 4 | ||||
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 2 |
2 files changed, 3 insertions, 3 deletions
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): | |||
178 | # os.dup2(0, 2) # standard error (2) | 178 | # os.dup2(0, 2) # standard error (2) |
179 | 179 | ||
180 | 180 | ||
181 | si = file('/dev/null', 'r') | 181 | si = open('/dev/null', 'r') |
182 | so = file(logfile, 'w') | 182 | so = open(logfile, 'w') |
183 | se = so | 183 | se = so |
184 | 184 | ||
185 | 185 | ||
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() |