mirror of
git://git.yoctoproject.org/poky
synced 2026-10-01 18:51:15 +00:00
bitbake: bitbake: ConfHandler: Use with to manage filehandle lifetime
(Bitbake rev: 459ad524756a3f9b50feeedf31e33502dceae8d5) Signed-off-by: Ola x Nilsson <olani@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
beda62448d
commit
5107dce38e
@ -119,7 +119,7 @@ def handle(fn, data, include):
|
|||||||
oldfile = data.getVar('FILE', False)
|
oldfile = data.getVar('FILE', False)
|
||||||
|
|
||||||
abs_fn = resolve_file(fn, data)
|
abs_fn = resolve_file(fn, data)
|
||||||
f = open(abs_fn, 'r')
|
with open(abs_fn, 'r') as f:
|
||||||
|
|
||||||
statements = ast.StatementGroup()
|
statements = ast.StatementGroup()
|
||||||
lineno = 0
|
lineno = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user