Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ipykernel/ipkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import sys

from IPython.core import release
from ipython_genutils.py3compat import safe_unicode
from IPython.utils.tokenutil import token_at_cursor, line_at_cursor
from tornado import gen
from traitlets import Instance, Type, Any, List, Bool, observe, observe_compat
Expand Down Expand Up @@ -351,7 +350,7 @@ def run_cell(*args, **kwargs):
reply_content.update({
'traceback': shell._last_traceback or [],
'ename': str(type(err).__name__),
'evalue': safe_unicode(err),
'evalue': str(err),
})

# FIXME: deprecated piece for ipyparallel (remove in 5.0):
Expand Down
3 changes: 1 addition & 2 deletions ipykernel/zmqshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
from IPython.utils import openpy
from ipykernel.jsonutil import json_clean, encode_images
from IPython.utils.process import arg_split, system
from ipython_genutils import py3compat
from traitlets import (
Instance, Type, Dict, CBool, CBytes, Any, default, observe
)
Expand Down Expand Up @@ -546,7 +545,7 @@ def _showtraceback(self, etype, evalue, stb):
exc_content = {
'traceback' : stb,
'ename' : str(etype.__name__),
'evalue' : py3compat.safe_unicode(evalue),
'evalue' : str(evalue),
}

dh = self.displayhook
Expand Down