##// END OF EJS Templates
change how dill is enabled...
MinRK -
Show More
@@ -56,14 +56,14 def use_dill():
56 # tell the two relevant modules to use plain pickle
56 # tell the two relevant modules to use plain pickle
57
57
58 global pickle
58 global pickle
59 import pickle
59 pickle = dill
60
60
61 try:
61 try:
62 from IPython.kernel.zmq import serialize
62 from IPython.kernel.zmq import serialize
63 except ImportError:
63 except ImportError:
64 pass
64 pass
65 else:
65 else:
66 serialize.pickle = pickle
66 serialize.pickle = dill
67
67
68 # disable special function handling, let dill take care of it
68 # disable special function handling, let dill take care of it
69 can_map.pop(FunctionType, None)
69 can_map.pop(FunctionType, None)
General Comments 0
You need to be logged in to leave comments. Login now