From 48d63c686f83e6167a0025471118961884096ba5 2010-01-05 20:31:12 From: Fernando Perez Date: 2010-01-05 20:31:12 Subject: [PATCH] Cleaner access to log call. At least now we're not walking the component tree manually... A bigger refactor is still needed here, but this code is less brittle than multiple .parent access. --- diff --git a/IPython/core/prefilter.py b/IPython/core/prefilter.py index b6fdba2..64f7f8a 100755 --- a/IPython/core/prefilter.py +++ b/IPython/core/prefilter.py @@ -853,7 +853,7 @@ class AutoHandler(PrefilterHandler): # XXX - Ugly hack! We are breaking on multiline input and I'm out # of time tonight to disentangle the component hirerarchy issue # here... Fix this more cleanly later. - self.parent.parent.log(line,line,continue_prompt) + self.shell.log(line,line,continue_prompt) return line