Skip to content

Commit bbd02ed

Browse files
authored
Merge pull request #1012 from minrk/stop-json-clean
2 parents fe8f428 + fba6367 commit bbd02ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ipyparallel/engine/datapub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
5-
from ipykernel.jsonutil import json_clean
65
from jupyter_client.session import Session, extract_header
76
from traitlets import Any, CBytes, Dict, Instance
87
from traitlets.config import Configurable
@@ -27,14 +26,15 @@ def publish_data(self, data):
2726
----------
2827
data : dict
2928
The data to be published. Think of it as a namespace.
29+
Keys should be strings.
3030
"""
3131
session = self.session
3232
buffers = serialize_object(
3333
data,
3434
buffer_threshold=session.buffer_threshold,
3535
item_threshold=session.item_threshold,
3636
)
37-
content = json_clean(dict(keys=list(data.keys())))
37+
content = dict(keys=list(data.keys()))
3838
session.send(
3939
self.pub_socket,
4040
'data_message',

0 commit comments

Comments
 (0)