mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
Merge from 3.4
This commit is contained in:
commit
19ddaf6d40
3 changed files with 31 additions and 3 deletions
|
@ -275,11 +275,12 @@ class GNUTranslations(NullTranslations):
|
|||
# See if we're looking at GNU .mo conventions for metadata
|
||||
if mlen == 0:
|
||||
# Catalog description
|
||||
lastk = k = None
|
||||
lastk = None
|
||||
for b_item in tmsg.split('\n'.encode("ascii")):
|
||||
item = b_item.decode().strip()
|
||||
if not item:
|
||||
continue
|
||||
k = v = None
|
||||
if ':' in item:
|
||||
k, v = item.split(':', 1)
|
||||
k = k.strip().lower()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue