Merge from 3.4

This commit is contained in:
Andrew Kuchling 2015-04-14 10:35:43 -04:00
commit 19ddaf6d40
3 changed files with 31 additions and 3 deletions

View file

@ -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()