Another babel.plural traceback
15 July 2008
10:04
| 1 | Traceback (most recent call last): |
|---|---|
| 2 | File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py", line 1212, in __run |
| 3 | compileflags, 1) in test.globs |
| 4 | File "<doctest babel.core.Locale.plural_form[3]>", line 1, in <module> |
| 5 | Locale('ru').plural_form(100) |
| 6 | File "/Users/chris/Projects/Edgewall/Babel/trunk/babel/plural.py", line 120, in __call__ |
| 7 | self._func = to_python(self) |
| 8 | File "/Users/chris/Projects/Edgewall/Babel/trunk/babel/plural.py", line 171, in to_python |
| 9 | result.append(' if (%s): return %r' % (to_python(ast), tag)) |
| 10 | File "/Users/chris/Projects/Edgewall/Babel/trunk/babel/plural.py", line 372, in compile |
| 11 | return getattr(self, 'compile_' + op)(*args) |
| 12 | File "/Users/chris/Projects/Edgewall/Babel/trunk/babel/plural.py", line 363, in <lambda> |
| 13 | return lambda self, l, r: tmpl % (self.compile(l), self.compile(r)) |
| 14 | File "/Users/chris/Projects/Edgewall/Babel/trunk/babel/plural.py", line 372, in compile |
| 15 | return getattr(self, 'compile_' + op)(*args) |
| 16 | TypeError: <lambda>() takes exactly 3 arguments (2 given) |
Comments
No comments so far.
