3131
3232from traitlets .config .configurable import SingletonConfigurable
3333from IPython .core .error import StdinNotImplementedError
34- from ipykernel .jsonutil import json_clean
3534from traitlets import (
3635 Any , Instance , Float , Dict , List , Set , Integer , Unicode , Bool ,
3736 observe , default
@@ -657,7 +656,6 @@ async def execute_request(self, stream, ident, parent):
657656 time .sleep (self ._execute_sleep )
658657
659658 # Send the reply.
660- reply_content = json_clean (reply_content )
661659 metadata = self .finish_metadata (parent , metadata , reply_content )
662660
663661 reply_msg = self .session .send (stream , 'execute_reply' ,
@@ -684,7 +682,6 @@ async def complete_request(self, stream, ident, parent):
684682 if inspect .isawaitable (matches ):
685683 matches = await matches
686684
687- matches = json_clean (matches )
688685 self .session .send (stream , "complete_reply" , matches , parent , ident )
689686
690687 def do_complete (self , code , cursor_pos ):
@@ -707,7 +704,6 @@ async def inspect_request(self, stream, ident, parent):
707704 reply_content = await reply_content
708705
709706 # Before we send this object over, we scrub it for JSON usage
710- reply_content = json_clean (reply_content )
711707 msg = self .session .send (stream , 'inspect_reply' ,
712708 reply_content , parent , ident )
713709 self .log .debug ("%s" , msg )
@@ -724,7 +720,6 @@ async def history_request(self, stream, ident, parent):
724720 if inspect .isawaitable (reply_content ):
725721 reply_content = await reply_content
726722
727- reply_content = json_clean (reply_content )
728723 msg = self .session .send (stream , 'history_reply' ,
729724 reply_content , parent , ident )
730725 self .log .debug ("%s" , msg )
@@ -838,7 +833,6 @@ async def is_complete_request(self, stream, ident, parent):
838833 reply_content = self .do_is_complete (code )
839834 if inspect .isawaitable (reply_content ):
840835 reply_content = await reply_content
841- reply_content = json_clean (reply_content )
842836 reply_msg = self .session .send (stream , 'is_complete_reply' ,
843837 reply_content , parent , ident )
844838 self .log .debug ("%s" , reply_msg )
@@ -854,7 +848,6 @@ async def debug_request(self, stream, ident, parent):
854848 reply_content = self .do_debug_request (content )
855849 if inspect .isawaitable (reply_content ):
856850 reply_content = await reply_content
857- reply_content = json_clean (reply_content )
858851 reply_msg = self .session .send (stream , 'debug_reply' , reply_content ,
859852 parent , ident )
860853 self .log .debug ("%s" , reply_msg )
@@ -1026,7 +1019,7 @@ def _input_request(self, prompt, ident, parent, password=False):
10261019 raise
10271020
10281021 # Send the input request.
1029- content = json_clean ( dict (prompt = prompt , password = password ) )
1022+ content = dict (prompt = prompt , password = password )
10301023 self .session .send (self .stdin_socket , 'input_request' , content , parent ,
10311024 ident = ident )
10321025
0 commit comments