1.1 --- a/translator.py Wed Feb 08 01:17:38 2017 +0100
1.2 +++ b/translator.py Wed Feb 08 01:21:39 2017 +0100
1.3 @@ -34,6 +34,7 @@
1.4 from StringIO import StringIO
1.5 import compiler
1.6 import results
1.7 +import sys
1.8
1.9 class Translator(CommonOutput):
1.10
1.11 @@ -1223,7 +1224,8 @@
1.12 for ref in unsuitable:
1.13 _objpath = ref.get_origin()
1.14 num_parameters = len(self.importer.function_parameters[_objpath])
1.15 - print "In %s, at line %d, inappropriate number of " \
1.16 + print >>sys.stderr, \
1.17 + "In %s, at line %d, inappropriate number of " \
1.18 "arguments given. Need %d arguments to call %s." % (
1.19 self.get_namespace_path(), n.lineno, num_parameters,
1.20 _objpath)