1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00

print with more than one argument does not raise an error anymore but creates a warning.

This commit is contained in:
traber@win.desy.de 2008-07-22 14:22:49 +02:00
parent 4c54ab4b1e
commit 4ec1283f1a

View File

@ -272,7 +272,7 @@ class _NotSupportedVisitor(_ConversionMixin):
def visitPrintnl(self, node, *args):
if len(node.nodes) > 1:
warnings.warn("print with more than one argument: %s"%node)
warnings.warn("print with more than one argument not supported: %s"%node)
if node.dest is not None:
self.raiseError(node, _error.NotSupported, "printing to a file with >> syntax")
self.visitChildNodes(node, *args)