Typo in error messages.
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 14 Jan 2010 22:49:09 +0000 (14:49 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 14 Jan 2010 22:49:09 +0000 (14:49 -0800)
Cython/Compiler/ParseTreeTransforms.py

index 49762e4a8fef70b23d9ee09ba5c57cdb48df7ec8..1d073d758ea1cdd36cebe8a92891a8002dfe12f5 100644 (file)
@@ -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