Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > ed2c56395aee538706a72768ff9a9ac9 > files > 12

python-2.7.13-1.1.mga6.src.rpm

commit 9155a852f1381be7da29f716251b821f1402ef47
Author: philippem <philippem@mageia.org>
Date:   Mon Jul 4 16:01:17 2016 +0200

    plural-fix

diff --git a/Lib/gettext.py b/Lib/gettext.py
index 43202c4..7448f13 100644
--- a/Lib/gettext.py
+++ b/Lib/gettext.py
@@ -301,6 +301,8 @@ class GNUTranslations(NullTranslations):
                     item = item.strip()
                     if not item:
                         continue
+                    if item.startswith("#"):
+                        continue
                     k = v = None
                     if ':' in item:
                         k, v = item.split(':', 1)