Commit cb64370a authored by Carlos Ramos Carreño's avatar Carlos Ramos Carreño

Fix regression in Python 3.

parent aadaf6f4
......@@ -660,7 +660,8 @@ class MessageCatalog(LanguageManager, ObjectManager, SimpleItem):
messages = self._messages
# Load the data
data = data.decode("utf-8")
if isinstance(data, bytes):
data = data.decode("utf-8")
po = polib.pofile(data)
encoding = to_str(po.encoding)
for entry in po:
......
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