summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefano Rivera <stefano@rivera.za.net>2022-12-29 14:55:08 -0400
committerStefano Rivera <stefano@rivera.za.net>2022-12-29 14:56:34 -0400
commit7ecd8d6f75d9d21f3f7b10e4c84958cf3aa8fb17 (patch)
tree24a0b8ffc727bbd3a0c637aa84119e9ace8d1b51 /src
parent109345ccc7779bb5eda68d2c6f6f8808065666bc (diff)
downloadpyramid-7ecd8d6f75d9d21f3f7b10e4c84958cf3aa8fb17.tar.gz
pyramid-7ecd8d6f75d9d21f3f7b10e4c84958cf3aa8fb17.tar.bz2
pyramid-7ecd8d6f75d9d21f3f7b10e4c84958cf3aa8fb17.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/pyramid/i18n.py12
1 files changed, 0 insertions, 12 deletions
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.