From 64d638bc3b9821cef35d413d0e32a1e11bb3f501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gl=C3=A4=C3=9Fle?= Date: Mon, 19 Feb 2018 11:24:41 +0100 Subject: [PATCH] Fix pickling on IronPython, 2nd attempt Closes #251 --- rpyc/core/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpyc/core/protocol.py b/rpyc/core/protocol.py index fbdccc54..34d27676 100644 --- a/rpyc/core/protocol.py +++ b/rpyc/core/protocol.py @@ -661,7 +661,7 @@ def _handle_ctxexit(self, obj, exc): def _handle_pickle(self, obj, proto): if not self._config["allow_pickle"]: raise ValueError("pickling is disabled") - return pickle.dumps(obj, proto) + return bytes(pickle.dumps(obj, proto)) def _handle_buffiter(self, obj, count): return tuple(itertools.islice(obj, count)) def _handle_oldslicing(self, obj, attempt, fallback, start, stop, args):