From: Alex Morega Date: Sun, 7 Jul 2013 09:04:51 +0000 (+0200) Subject: the python stdlib has no *pgettext X-Git-Tag: 1.0~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe3fa8d7f9add26e85da86ccc0e4210400f85876;p=thirdparty%2Fbabel.git the python stdlib has no *pgettext --- diff --git a/babel/support.py b/babel/support.py index 50a8b8d4..24866ff5 100644 --- a/babel/support.py +++ b/babel/support.py @@ -529,8 +529,6 @@ class NullTranslations(gettext.NullTranslations, object): if not PY2: ugettext = gettext.NullTranslations.gettext ungettext = gettext.NullTranslations.ngettext - upgettext = gettext.NullTranslations.pgettext - upnpgettext = gettext.NullTranslations.npgettext class Translations(NullTranslations, gettext.GNUTranslations): @@ -550,8 +548,6 @@ class Translations(NullTranslations, gettext.GNUTranslations): if not PY2: ugettext = gettext.GNUTranslations.gettext ungettext = gettext.GNUTranslations.ngettext - upgettext = gettext.GNUTranslations.pgettext - upnpgettext = gettext.GNUTranslations.npgettext @classmethod def load(cls, dirname=None, locales=None, domain=None):