From 53c92148dbff4ee2a1e26d1b1e5721099fab68ce Mon Sep 17 00:00:00 2001 From: Luke Campagnola Date: Fri, 4 Sep 2015 17:16:36 -0400 Subject: [PATCH] Add unicode, bytes to default no-proxy list --- pyqtgraph/multiprocess/remoteproxy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyqtgraph/multiprocess/remoteproxy.py b/pyqtgraph/multiprocess/remoteproxy.py index 66db1221..208e17f4 100644 --- a/pyqtgraph/multiprocess/remoteproxy.py +++ b/pyqtgraph/multiprocess/remoteproxy.py @@ -69,6 +69,11 @@ class RemoteEventHandler(object): 'deferGetattr': False, ## True, False 'noProxyTypes': [ type(None), str, int, float, tuple, list, dict, LocalObjectProxy, ObjectProxy ], } + if int(sys.version[0]) < 3: + self.proxyOptions['noProxyTypes'].append(unicode) + else: + self.proxyOptions['noProxyTypes'].append(bytes) + self.optsLock = threading.RLock() self.nextRequestId = 0