Beispiel #1
0
 def Warning(self, msg):
   WarnOut.LogLine(self.filename, self.lineno, 0, ' %s %s' %
                   (str(self), msg))
 def Warn(self, node, msg):
     WarnOut.LogLine(node.filename, node.lineno, node.pos, msg)
     self.parse_warnings += 1
Beispiel #3
0
 def Warning(self, msg):
     """Log a warning for this object."""
     WarnOut.LogLine(self._filename, self.lineno, 0,
                     ' %s %s' % (str(self), msg))