Commit e19ab4f6 authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño Committed by Jérome Perrin

Fix regression in Python 3.

parent 911860fd
...@@ -660,6 +660,7 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem): ...@@ -660,6 +660,7 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem):
messages = self._messages messages = self._messages
# Load the data # Load the data
if isinstance(data, bytes):
data = data.decode("utf-8") data = data.decode("utf-8")
po = polib.pofile(data) po = polib.pofile(data)
encoding = to_str(po.encoding) encoding = to_str(po.encoding)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment