Add unicode, bytes to default no-proxy list

This commit is contained in:
Luke Campagnola 2015-09-04 17:16:36 -04:00
parent d65008dd63
commit 53c92148db

View File

@ -69,6 +69,11 @@ class RemoteEventHandler(object):
'deferGetattr': False, ## True, False 'deferGetattr': False, ## True, False
'noProxyTypes': [ type(None), str, int, float, tuple, list, dict, LocalObjectProxy, ObjectProxy ], '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.optsLock = threading.RLock()
self.nextRequestId = 0 self.nextRequestId = 0