#5 ooolib.py save methods doesn't close file

closed-fixed
None
5
2008-10-29
2008-08-13
Anonymous
No

The save() methods in the Calc and Writer classes don't call the ZipFile.close() method when they're done creating the file.

This can cause operations like os.stat() to report an incorrect filesize when used immediately after creating the file. The ZipFile documentation at python.org insists you call close() as well.

leon@soulbase.nl

Discussion

  • Joseph Colton

    Joseph Colton - 2008-10-29
    • assigned_to: nobody --> chiasmus1
    • status: open --> closed-fixed
     
  • Joseph Colton

    Joseph Colton - 2008-10-29

    Fixed in SVN repository.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks