bitbake: lib: Clean up various file access syntax
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 May 2013 21:06:45 +0000 (21:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 May 2013 21:28:04 +0000 (22:28 +0100)
commitfae6c422a32af95b490ea761efaa2e47809f0343
treed66309ba59bd48811b80df69faaf8754eae4e9fe
parent8306167d49531afda502ca0013890c61e8a3e65f
bitbake: lib: Clean up various file access syntax

Python 3 is stricter about how files are accessed. Specficially:

 * Use open(), not file()
 * Use binary mode for binary files (when checksumming)
 * Use with statements to ensure files get closed
 * Add missing file close statements

(Bitbake rev: 9f08b901375ba640f47596f1bcf43f98a931550f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/build.py
bitbake/lib/bb/cache.py
bitbake/lib/bb/parse/parse_py/BBHandler.py
bitbake/lib/bb/parse/parse_py/ConfHandler.py
bitbake/lib/bb/process.py
bitbake/lib/bb/utils.py