[Python-modules-commits] [python-odf] 115/118: close zipoutputfp at line 409. without the fix, cannot write the document properly using pypy
Wolfgang Borgert
debacle at moszumanska.debian.org
Fri Oct 3 21:27:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to reference refs/remotes/upstream/master
in repository python-odf.
commit cee9bbdeb99e5ba3849e03041853fdf45b70e9c3
Author: chfw <wangc_2011 at hotmail.com>
Date: Sun Sep 7 23:33:06 2014 +0100
close zipoutputfp at line 409. without the fix, cannot write the document properly using pypy
---
odf/opendocument.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/odf/opendocument.py b/odf/opendocument.py
index 0d87f65..efc9597 100644
--- a/odf/opendocument.py
+++ b/odf/opendocument.py
@@ -408,6 +408,7 @@ class OpenDocument:
"""
zipoutputfp = zipfile.ZipFile(outputfp,"w")
self.__zipwrite(zipoutputfp)
+ zipoutputfp.close()
def __zipwrite(self, outputfp):
""" Write the document to an open file pointer
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-odf.git
More information about the Python-modules-commits
mailing list