Commit c4e63930 authored by Hugo H. Maia Vieira's avatar Hugo H. Maia Vieira

Fix file closed bug


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@41208 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5cbdc1e
......@@ -153,11 +153,7 @@ class OdfDocument(object):
data -- Content of the document
source_format -- Document Extension
"""
data_file = StringIO(data)
try:
self._zipfile = ZipFile(data_file)
finally:
data_file.close()
self._zipfile = ZipFile(StringIO(data))
self.source_format = source_format
# XXX - Maybe parsed_content should not be here, but on OOGranulate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment