]> git.ipfire.org Git - thirdparty/babel.git/commit
Fix duplicate locations when writing without lineno
authorSigurd Ljødal <544451+ljodal@users.noreply.github.com>
Mon, 31 Jan 2022 16:47:21 +0000 (17:47 +0100)
committerAarni Koskela <akx@iki.fi>
Fri, 8 Apr 2022 10:27:18 +0000 (13:27 +0300)
commit7e90d6b8fe1327ed863b626db51be9061b6b5781
tree7e72731006b2dffc9105d850ccebd327d3bacdc9
parentbc7a51bc8809f9d62dca43a634d3b803dc054cf0
Fix duplicate locations when writing without lineno

If the same translation appears multiple times in the same file,
duplicate locations would be written to the .po file when using
write_po(..., include_lineno=False).
babel/messages/pofile.py
tests/messages/test_pofile.py