From: Christopher Lenz Date: Mon, 25 Aug 2008 11:33:35 +0000 (+0000) Subject: Fix some epydoc usage in the `plural` module. X-Git-Tag: 1.0~278 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb93d5e6a281a832dcc919a243c028872a58df92;p=thirdparty%2Fbabel.git Fix some epydoc usage in the `plural` module. --- diff --git a/babel/plural.py b/babel/plural.py index df3072c2..58787789 100644 --- a/babel/plural.py +++ b/babel/plural.py @@ -78,7 +78,7 @@ class PluralRule(object): :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 @@ def to_javascript(rule): :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 @@ def to_python(rule): :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,