Skip to content

Commit 16397ee

Browse files
committed
Replace non-existing function.
This was forgotten as part of an earlier pass, when safe_unicode (py2 compat) was removed. safe_unicode is undefiled now and would lead to crash. Part of the #717 PR-group.
1 parent b2f1a79 commit 16397ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipykernel/ipkernel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,9 @@ def do_apply(self, content, bufs, msg_id, reply_metadata):
534534
# invoke IPython traceback formatting
535535
shell.showtraceback()
536536
reply_content = {
537-
'traceback': shell._last_traceback or [],
538-
'ename': str(type(e).__name__),
539-
'evalue': safe_unicode(e),
537+
"traceback": shell._last_traceback or [],
538+
"ename": str(type(e).__name__),
539+
"evalue": str(e),
540540
}
541541
# FIXME: deprecated piece for ipyparallel (remove in 5.0):
542542
e_info = dict(engine_uuid=self.ident, engine_id=self.int_id, method='apply')

0 commit comments

Comments
 (0)