Pass code check

This commit is contained in:
Bob Lantz
2015-03-18 15:17:33 -07:00
parent 79c944aef4
commit c5779deeb6
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -68,6 +68,7 @@ class CLI( Cmd ):
self.run()
readlineInited = False
@classmethod
def initReadline( cls ):
"Set up history if readline is available"
@@ -101,10 +102,12 @@ class CLI( Cmd ):
break
except KeyboardInterrupt:
# Output a message - unless it's also interrupted
# pylint: disable=broad-except
try:
output( '\nInterrupt\n' )
except:
except Exception:
pass
# pylint: enable=broad-except
def emptyline( self ):
"Don't repeat last command when you hit return."
+2 -1
View File
@@ -54,7 +54,8 @@ def makeTerm( node, title='Node', term='xterm', display=None, cmd='bash'):
display, tunnel = tunnelX11( node, display )
if display is None:
return []
term = node.popen( cmds[ term ] + [ display, '-e', 'env TERM=ansi %s' % cmd ] )
term = node.popen( cmds[ term ] +
[ display, '-e', 'env TERM=ansi %s' % cmd ] )
return [ tunnel, term ] if tunnel else [ term ]
def runX11( node, cmd ):