##// END OF EJS Templates
Switch round alias of render_traceback() method.
Thomas Kluyver -
Show More
@@ -190,12 +190,12 b' class RemoteError(KernelError):'
190 def __str__(self):
190 def __str__(self):
191 return "%s(%s)" % (self.ename, self.evalue)
191 return "%s(%s)" % (self.ename, self.evalue)
192
192
193 def _render_traceback_(self):
193 def render_traceback(self):
194 """render traceback to a list of lines"""
194 """render traceback to a list of lines"""
195 return (self.traceback or "No traceback available").splitlines()
195 return (self.traceback or "No traceback available").splitlines()
196
196
197 # Previous name retained for backwards compatibility.
197 # Special method for custom tracebacks within IPython
198 render_traceback = _render_traceback_
198 _render_traceback_ = render_traceback
199
199
200 def print_traceback(self, excid=None):
200 def print_traceback(self, excid=None):
201 """print my traceback"""
201 """print my traceback"""
General Comments 0
You need to be logged in to leave comments. Login now