Mercurial > babel > old > mirror
changeset 412:d2b5fa531a58
Fix some epydoc usage in the `plural` module.
author | cmlenz |
---|---|
date | Mon, 25 Aug 2008 11:33:35 +0000 |
parents | 86b8fe7b83dc |
children | a0fdc4c4a169 |
files | babel/plural.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/babel/plural.py +++ b/babel/plural.py @@ -78,7 +78,7 @@ :param rules: the rules as list or dict, or a `PluralRule` object :return: a corresponding `PluralRule` object - :raise: a `RuleError` if the expression is malformed + :raise Ruleerror: if the expression is malformed """ if isinstance(rules, cls): return rules @@ -140,7 +140,7 @@ :param rules: the rules as list or dict, or a `PluralRule` object :return: a corresponding JavaScript function as `str` - :raise: a `RuleError` if the expression is malformed + :raise RuleError: if the expression is malformed """ to_js = _JavaScriptCompiler().compile result = ['(function(n) { return '] @@ -163,7 +163,7 @@ :param rules: the rules as list or dict, or a `PluralRule` object :return: a corresponding Python function - :raise: a `RuleError` if the expression is malformed + :raise RuleError: if the expression is malformed """ namespace = { 'IN': in_range,