From 7ecd8d6f75d9d21f3f7b10e4c84958cf3aa8fb17 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Thu, 29 Dec 2022 14:55:08 -0400 Subject: Drop l*gettext() from pyramid.i18n Python 3.8 deprecated l*gettext() (bpo-33710), and it was removed from Python in 3.11 (bpo-44235). In most cases on Python 3, the l variants aren't useful, and difficult to use correctly. This adds support for Python 3.11. --- src/pyramid/i18n.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/pyramid/i18n.py b/src/pyramid/i18n.py index cded99ca5..e7710f08d 100644 --- a/src/pyramid/i18n.py +++ b/src/pyramid/i18n.py @@ -335,12 +335,6 @@ class Translations(gettext.GNUTranslations): """ return self._domains.get(domain, self).gettext(message) - def ldgettext(self, domain, message): - """Like ``lgettext()``, but look the message up in the specified - domain. - """ - return self._domains.get(domain, self).lgettext(message) - def dugettext(self, domain, message): """Like ``ugettext()``, but look the message up in the specified domain. @@ -353,12 +347,6 @@ class Translations(gettext.GNUTranslations): """ return self._domains.get(domain, self).ngettext(singular, plural, num) - def ldngettext(self, domain, singular, plural, num): - """Like ``lngettext()``, but look the message up in the specified - domain. - """ - return self._domains.get(domain, self).lngettext(singular, plural, num) - def dungettext(self, domain, singular, plural, num): """Like ``ungettext()`` but look the message up in the specified domain. -- cgit v1.2.3