040adaf18084d2c022f3ce9ae072d69d14aad11d
[fedora-mingw.git] / python / 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                      if ':' in item:
11                          k, v = item.split(':', 1)
12                          k = k.strip().lower()