]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - 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
CommitLineData
48d9a6a0
MT
1diff -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
4034c523 10 k = v = None
48d9a6a0
MT
11 if ':' in item:
12 k, v = item.split(':', 1)