Skip to content
Snippets Groups Projects
Commit e555f83c authored by Bob Lantz's avatar Bob Lantz
Browse files

Replaced stdout.write() with output()

parent c1667986
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ def do_help( self, args ):
' mininet> xterm h2\n\n'
)
if args is '':
self.stdout.write( helpStr )
output( helpStr )
def do_nodes( self, args ):
"List all nodes."
......@@ -238,7 +238,7 @@ def default( self, line ):
node.sendCmd( rest )
self.waitForNode( node, isShellBuiltin( first ) )
else:
self.stdout.write( '*** Unknown command: %s\n' % first )
error( '*** Unknown command: %s\n' % first )
# pylint: enable-msg=W0613,R0201
......@@ -268,7 +268,7 @@ def waitForNode( self, node, isShellBuiltin=False ):
node.write( key )
if self.isReadable( nodePoller ):
data = node.monitor()
output( '%s' % data )
output( data )
if not node.waiting:
break
except KeyboardInterrupt:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment