Skip to content

Commit 280fdfd

Browse files
authored
Merge pull request #631 from SylvainCorlay/less-use-of-genutils
Make less use of ipython_genutils
2 parents 7e85756 + f5c3094 commit 280fdfd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ipykernel/ipkernel.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import sys
1010

1111
from IPython.core import release
12-
from ipython_genutils.py3compat import safe_unicode
1312
from IPython.utils.tokenutil import token_at_cursor, line_at_cursor
1413
from tornado import gen
1514
from traitlets import Instance, Type, Any, List, Bool, observe, observe_compat
@@ -351,7 +350,7 @@ def run_cell(*args, **kwargs):
351350
reply_content.update({
352351
'traceback': shell._last_traceback or [],
353352
'ename': str(type(err).__name__),
354-
'evalue': safe_unicode(err),
353+
'evalue': str(err),
355354
})
356355

357356
# FIXME: deprecated piece for ipyparallel (remove in 5.0):

ipykernel/zmqshell.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
from IPython.utils import openpy
4141
from ipykernel.jsonutil import json_clean, encode_images
4242
from IPython.utils.process import arg_split, system
43-
from ipython_genutils import py3compat
4443
from traitlets import (
4544
Instance, Type, Dict, CBool, CBytes, Any, default, observe
4645
)
@@ -546,7 +545,7 @@ def _showtraceback(self, etype, evalue, stb):
546545
exc_content = {
547546
'traceback' : stb,
548547
'ename' : str(etype.__name__),
549-
'evalue' : py3compat.safe_unicode(evalue),
548+
'evalue' : str(evalue),
550549
}
551550

552551
dh = self.displayhook

0 commit comments

Comments
 (0)