Polib

Latest version: v1.2.0

Safety actively analyzes 627119 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

1.0.5

--------------------------
- Fixed issue 59: tokens variable referenced before assignment
- Implemented feature request 56: line number information in PO entries
- Fixed issue 61: polib does not handle previous msgid on multilines properly

1.0.4

--------------------------
- Fixed issue 43: improved check that determine if polib is dealing with a filepath or unicode content
- Fixed issue 44: polib now checks MO files revision number and throws an error if the number is unexpected
- Fixed issue 45: parse properly mo files with no header entry
- Fixed issue 47: added flags attribute for MOEntry to be consistent with POEntry
- Fixed issue 49: use integers rather than strings for msgstr_plural keys
- Fixed issue 51: if a PO file ends with a comment, polib adds a spurious empty entry at the end
- Fixed issue 52: bad magic number written on big endian platforms
- Fixed issue 53: added a __hash__() method to POEntry and MOEntry classes
- Fixed issue 54: use lowercase for state identifiers. This fixes issues with certain locales and string.lower()
- Fixed issue 58: use io.open() instead of codecs.open() because the latter doesn't handle very well universal line endings
- Make sure the mo file is closed at garbage collection, this prevents warnings on unclosed file when running tests with python >= 3.2
- Better way to test endianness
- polib download URL is now on Pypi

1.0.3

--------------------------
- Fixed issue 38: POFile.append() raised a duplicate exception when you tried to add a new entry with the same msgid and a different msgctxt (only when check_for_duplicates option is set to True)
- Fixed issue 39: Added __init__.py file for convenience
- Fixed issue 41: UnicodeDecodeError when running setup.py build on python3 with C locale
- polib is now fully PEP8 compliant
- Small improvements: remove unused "typ" var (thanks Rodrigo Silva), improved Makefile, Make sure _BaseFile.__contains__ returns a boolean value

1.0.2

--------------------------
- allow empty comments, flags or occurrences lines

1.0.1

--------------------------
- speed up POFile.merge method (thanks encukou)
- allow comments starting with two '' characters (thanks goibhniu)

1.0.0

--------------------------
Yeah... after nearly 6 years, polib reaches the stable state :)
Changes and fixes in this release :

- polib.pofile and polib.mofile functions can now return a custom class (thanks Craig Blaszczyk)
- polib now can find the metadata entry no matter where it is located (thanks François Poirotte)
- fixed issue 28 (IOError on reading obsolete "previous msgid" entries) (thanks James Ni)

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.