]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fix some epydoc usage in the `plural` module.
authorChristopher Lenz <cmlenz@gmail.com>
Mon, 25 Aug 2008 11:33:35 +0000 (11:33 +0000)
committerChristopher Lenz <cmlenz@gmail.com>
Mon, 25 Aug 2008 11:33:35 +0000 (11:33 +0000)
babel/plural.py

index df3072c2e268208204d1d5d02360625ae3f75dd4..58787789ecac15cdef30a33a0f7aed7b00f39019 100644 (file)
@@ -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,