]> git.ipfire.org Git - thirdparty/babel.git/commit
pofile parsing. Fix handling of obsolete + refactor
authorMichael Birtwell <michael.birtwell@starleaf.com>
Wed, 12 Oct 2016 15:13:50 +0000 (16:13 +0100)
committerMichael Birtwell <michael.birtwell@starleaf.com>
Mon, 21 Nov 2016 14:32:49 +0000 (14:32 +0000)
commit467bf955711e9224bb9f51a9620282d98e61f6c6
tree8ba1d2f6e25169f52745ae38ef9ac061d44e38f0
parent15365e2cc99d0fe05b90aeb2fddec44c6ffef762
pofile parsing. Fix handling of obsolete + refactor

Fixes the handling of the unit before the obsolete unit.
Previously it would mark the unit before an obsolete unit as obsolete
also.

Some refactoring:
* the transition between finishing one unit and starting the next
is clearer
* separate the processing of keywords and continuation lines
* combine the reset and initialisation code
* Make the handling of strings consistent.
* Add some nascent error handling, removed some errors in test inputs
babel/messages/pofile.py
tests/messages/test_pofile.py