[Erp5-report] r41208 hugo.maia - /erp5/trunk/utils/cloudooo/cloudooo/document.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Dec 7 23:29:03 CET 2010


Author: hugo.maia
Date: Tue Dec  7 23:29:03 2010
New Revision: 41208

URL: http://svn.erp5.org?rev=41208&view=rev
Log:
Fix file closed bug

Modified:
    erp5/trunk/utils/cloudooo/cloudooo/document.py

Modified: erp5/trunk/utils/cloudooo/cloudooo/document.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/document.py?rev=41208&r1=41207&r2=41208&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/document.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/document.py [utf8] Tue Dec  7 23:29:03 2010
@@ -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



More information about the Erp5-report mailing list