We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 967f5d1 commit 16f2928Copy full SHA for 16f2928
1 file changed
babel/messages/mofile.py
@@ -89,13 +89,11 @@ def read_mo(fileobj: SupportsRead[bytes]) -> Catalog:
89
if b'\x00' in msg: # plural forms
90
msg = msg.split(b'\x00')
91
tmsg = tmsg.split(b'\x00')
92
- if catalog.charset:
93
- msg = [x.decode(catalog.charset) for x in msg]
94
- tmsg = [x.decode(catalog.charset) for x in tmsg]
+ msg = [x.decode(catalog.charset) for x in msg]
+ tmsg = [x.decode(catalog.charset) for x in tmsg]
95
else:
96
97
- msg = msg.decode(catalog.charset)
98
- tmsg = tmsg.decode(catalog.charset)
+ msg = msg.decode(catalog.charset)
+ tmsg = tmsg.decode(catalog.charset)
99
catalog[msg] = Message(msg, tmsg, context=ctxt)
100
101
# advance to next entry in the seek tables
0 commit comments