From: Robert Bradshaw Date: Thu, 14 Jan 2010 22:49:09 +0000 (-0800) Subject: Typo in error messages. X-Git-Tag: 0.12.1~23 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c54707832bd0e43fa504bcf0e3b447e381e51bca;p=cython.git Typo in error messages. --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 49762e4a..1d073d75 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -1034,13 +1034,13 @@ class TransformBuiltinMethods(EnvTransform): node = AmpersandNode(node.function.pos, operand=node.args[0]) elif function == 'cmod': if len(node.args) != 2: - error(node.function.pos, u"cmod() takes exactly one argument" % function) + error(node.function.pos, u"cmod() takes exactly two arguments" % function) else: node = binop_node(node.function.pos, '%', node.args[0], node.args[1]) node.cdivision = True elif function == 'cdiv': if len(node.args) != 2: - error(node.function.pos, u"cdiv() takes exactly one argument" % function) + error(node.function.pos, u"cdiv() takes exactly two arguments" % function) else: node = binop_node(node.function.pos, '/', node.args[0], node.args[1]) node.cdivision = True