eea / odfpy

API for OpenDocument in Python
GNU General Public License v2.0
311 stars 64 forks source link

small bug in OpenDocument.save() with outputfile=io.BytesIO and addsuffix=True #48

Open gamboz opened 7 years ago

gamboz commented 7 years ago

in this case, the code tries to add a string suffix to the ioBytesIO object and fails odf/opendocument.py lines 575,576:

        if addsuffix:
            outputfile = outputfile + odmimetypes.get(self.mimetype,u'.xxx')

thanks