Issue #26 resolved

Error handling po files with empty comments

Apostolis Bessas
created an issue

Hi,

polib v0.7 has an issue with pofiles which have empty comments. It does not recognise them as comments, but it raises an IOError instead. See for example the attached file, or http://trac.transifex.org/ticket/790.

Thanks, Apostolis

Comments (4)

  1. David Planella

    Hi,

    I was also bitten by this bug, so thanks a lot for fixing it!

    I believe this is a critical issue, since it renders polib unusable for a large number of PO files (having an empty '#.' line is quite common). Would it be possible to make a point release of polib including this patch, so that distributions can catch up and ship a working polib through their stable release update workflows?

    Thanks!

  2. Log in to comment