From 6f446f6e5521ee0519f35a531914977f2568b0c8 Mon Sep 17 00:00:00 2001 From: Bob Lantz <rlantz@cs.stanford.edu> Date: Fri, 2 Mar 2012 15:45:10 -0800 Subject: [PATCH] Make pylint happy. --- examples/consoles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/consoles.py b/examples/consoles.py index 607163d9..57294540 100755 --- a/examples/consoles.py +++ b/examples/consoles.py @@ -107,8 +107,10 @@ def append( self, text ): self.text.insert( 'end', text ) self.text.mark_set( 'insert', 'end' ) self.text.see( 'insert' ) + outputHook = lambda x,y: True # make pylint happy if self.outputHook: - self.outputHook( self, text ) + outputHook = self.outputHook + outputHook( self, text ) def handleKey( self, event ): "If it's an interactive command, send it to the node." -- GitLab