diff options
Diffstat (limited to 'babel/support.py')
-rw-r--r-- | babel/support.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/babel/support.py b/babel/support.py index c1851cf..59593b8 100644 --- a/babel/support.py +++ b/babel/support.py @@ -542,10 +542,7 @@ class NullTranslations(gettext.NullTranslations): except KeyError: if self._fallback: return self._fallback.unpgettext(context, singular, plural, num) - if num == 1: - tmsg = str(singular) - else: - tmsg = str(plural) + tmsg = str(singular) if num == 1 else str(plural) return tmsg def dpgettext(self, domain: str, context: str, message: str) -> str | object: |