From 7c7ba2c6489fb8d46074b4b6a3291937878815de 2014-04-15 20:11:23 From: MinRK Date: 2014-04-15 20:11:23 Subject: [PATCH] don't ensure_ascii in JSON messages in Session --- diff --git a/IPython/kernel/zmq/session.py b/IPython/kernel/zmq/session.py index a9e1ec4..0d53522 100644 --- a/IPython/kernel/zmq/session.py +++ b/IPython/kernel/zmq/session.py @@ -6,23 +6,10 @@ Also defined here are utilities for working with Sessions: * A SessionFactory to be used as a base class for configurables that work with Sessions. * A Message object for convenience that allows attribute-access to the msg dict. - -Authors: - -* Min RK -* Brian Granger -* Fernando Perez """ -#----------------------------------------------------------------------------- -# Copyright (C) 2010-2011 The IPython Development Team -# -# Distributed under the terms of the BSD License. The full license is in -# the file COPYING, distributed as part of this software. -#----------------------------------------------------------------------------- -#----------------------------------------------------------------------------- -# Imports -#----------------------------------------------------------------------------- +# Copyright (c) IPython Development Team. +# Distributed under the terms of the Modified BSD License. import hashlib import hmac @@ -80,7 +67,7 @@ def squash_unicode(obj): #----------------------------------------------------------------------------- # ISO8601-ify datetime objects -json_packer = lambda obj: jsonapi.dumps(obj, default=date_default) +json_packer = lambda obj: jsonapi.dumps(obj, default=date_default, ensure_ascii=False) json_unpacker = lambda s: jsonapi.loads(s) pickle_packer = lambda o: pickle.dumps(squash_dates(o),-1)