Error handling po files with empty comments

Issue #26 resolved
Apostolis Bessas
created an issue


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

Thanks, Apostolis

Comments (4)

  1. David Planella


    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?


  2. Log in to comment