]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - python/patches/python-2.5.1-plural-fix.patch
python: Update to 2.7.12.
[people/stevee/ipfire-3.x.git] / python / patches / python-2.5.1-plural-fix.patch
1 diff -up Python-2.5.1/Lib/gettext.py.plural Python-2.5.1/Lib/gettext.py
2 --- Python-2.5.1/Lib/gettext.py.plural 2007-09-10 11:38:57.000000000 -0400
3 +++ Python-2.5.1/Lib/gettext.py 2007-09-10 11:39:00.000000000 -0400
4 @@ -299,6 +299,8 @@ class GNUTranslations(NullTranslations):
5 item = item.strip()
6 if not item:
7 continue
8 + if item.startswith("#"):
9 + continue
10 k = v = None
11 if ':' in item:
12 k, v = item.split(':', 1)