summaryrefslogtreecommitdiff
path: root/Lib/gettext.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/gettext.py')
-rw-r--r--Lib/gettext.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/gettext.py b/Lib/gettext.py
index 95b41d2..765cc8c 100644
--- a/Lib/gettext.py
+++ b/Lib/gettext.py
@@ -387,9 +387,8 @@ class GNUTranslations(NullTranslations):
self._charset = v.split('charset=')[1]
elif k == 'plural-forms':
v = v.split(';')
- if len(v) > 1:
- plural = v[1].split('plural=')[1]
- self.plural = c2py(plural)
+ plural = v[1].split('plural=')[1]
+ self.plural = c2py(plural)
# Note: we unconditionally convert both msgids and msgstrs to
# Unicode using the character encoding specified in the charset
# parameter of the Content-Type header. The gettext documentation