polib.py raise a IOException when po file has a commented line in blank

Angel Abad avatarAngel Abad created an issue

Hi Izi, Im debian/ubuntu polib maintainer, This bug was filled in ubuntu bug tracker:

If the po file contains a empty comment line, for example:

. The next line is commented

.

. This also

The parser raise a IO exception.

Please see:

And patch:

If you think the patch is correct I can apply it in my packages before you release fix version.

Cheers!

Comments (5)

  1. David Jean Louis

    Hi Angel,

    I'm a bit confused by the patch on launchpad since it doesn't fix the described issue, the patch is on the flagline (#,) code block and the issue is related to comments (#.).

    I wouldn't recommend you fix the issue in your package but wait for a fix here instead.

    Regards.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.