# HG changeset patch # User Paul Boddie # Date 1486513299 -3600 # Node ID e8e4490ac9d40c80f1b630b3623d4d02d29fba5b # Parent b04bc99153cdcf7b5dc545521be1e61cd8a6850d Produce invocation warnings on standard error. diff -r b04bc99153cd -r e8e4490ac9d4 translator.py --- a/translator.py Wed Feb 08 01:17:38 2017 +0100 +++ b/translator.py Wed Feb 08 01:21:39 2017 +0100 @@ -34,6 +34,7 @@ from StringIO import StringIO import compiler import results +import sys class Translator(CommonOutput): @@ -1223,7 +1224,8 @@ for ref in unsuitable: _objpath = ref.get_origin() num_parameters = len(self.importer.function_parameters[_objpath]) - print "In %s, at line %d, inappropriate number of " \ + print >>sys.stderr, \ + "In %s, at line %d, inappropriate number of " \ "arguments given. Need %d arguments to call %s." % ( self.get_namespace_path(), n.lineno, num_parameters, _objpath)