* David MENTRE <[email protected]> [2012-04-14 18:49:30]:

> Hello,
> 
> I think we have a file descriptor leak when importing the logo file:
> the logo file descriptor is not closed. I think I fixed this properly,
> but any review from a Python expert would be appreciated. :-)

You don't need this here because of the with statement, which will
always call f.__exit__() (which calls f.close()) even if the with block
throws an exception.

/Max
-- 
Maxime Petazzoni <http://www.bulix.org>
 ``One by one, the penguins took away my sanity.''
Writing software in California

Attachment: signature.asc
Description: Digital signature

Reply via email to