Mercurial > babel > mirror
diff babel/support.py @ 599:33c8c68b96c7 trunk
change constructor for babel.support.Translations to __init__(fp=None, domain=None) as its super class gettext.GNUTranslations uses "fp" as well (even if "fileobj" is a better name)
author | fschwarz |
---|---|
date | Mon, 20 Aug 2012 19:34:42 +0000 |
parents | 92e3eb0a317a |
children | 60f716236946 |
line wrap: on
line diff
--- a/babel/support.py +++ b/babel/support.py @@ -524,14 +524,13 @@ DEFAULT_DOMAIN = 'messages' - def __init__(self, fileobj=None, domain=None): + def __init__(self, fp=None, domain=None): """Initialize the translations catalog. - :param fileobj: the file-like object the translation should be read - from + :param fp: the file-like object the translation should be read from :param domain: the message domain (default: 'messages') """ - super(Translations, self).__init__(fp=fileobj) + super(Translations, self).__init__(fp=fp) self.domain = domain or self.DEFAULT_DOMAIN @classmethod