1. David Jean Louis
  2. polib

Commits

David Jean Louis  committed ad3e0ac

Release 1.0.3

  • Participants
  • Parent commits 017e093
  • Branches default
  • Tags 1.0.3

Comments (0)

Files changed (2)

File CHANGELOG

View file
 Changelog
 =========
 
+Version 1.0.3 (2013/02/09)
+--------------------------
+ - 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), mproved Makefile, Make sure _BaseFile.__contains__ returns a boolean value
+
 Version 1.0.2 (2012/10/23)
 --------------------------
  - allow empty comments, flags or occurences lines

File polib.py

View file
 """
 
 __author__ = 'David Jean Louis <izimobil@gmail.com>'
-__version__ = '1.0.2'
+__version__ = '1.0.3'
 __all__ = ['pofile', 'POFile', 'POEntry', 'mofile', 'MOFile', 'MOEntry',
            'default_encoding', 'escape', 'unescape', 'detect_encoding', ]
 
             entries = [e for e in self if not e.obsolete]
         for e in entries:
             if getattr(e, by) == st:
-                if msgctxt != False and e.msgctxt != msgctxt:
+                if msgctxt is not False and e.msgctxt != msgctxt:
                     continue
                 return e
         return None