From 559c4163ea3c9d7160ca3518c517f1d5326d6552 Mon Sep 17 00:00:00 2001 From: Fedora Python maintainers Date: Wed, 15 Jul 2020 15:14:35 +0200 Subject: python-2.5.1-plural-fix.patch 00006 # Work around a bug in Python' gettext module relating to the "Plural-Forms" header (rhbz:252136) Related to upstream issues: http://bugs.python.org/issue1448060 and http://bugs.python.org/issue1475523 though the proposed upstream patches are, alas, different --- Lib/gettext.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/gettext.py b/Lib/gettext.py index 765cc8c..d45947c 100644 --- a/Lib/gettext.py +++ b/Lib/gettext.py @@ -374,6 +374,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) -- cgit v0.12