Skip to content

Commit 20f3392

Browse files
rlehfeldcomrumino
authored andcommitted
still does not work
1 parent e8ae2ba commit 20f3392

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rpyc/core/protocol.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,7 @@ def _unbox(self, package): # boxing
336336
return self._local_objects[value]
337337
if label == consts.LABEL_REMOTE_REF:
338338
id_pack = (str(value[0]), value[1], value[2]) # so value is a id_pack
339-
nonexistent = object()
340-
proxy = self._proxy_cache.get(id_pack, nonexistent)
341-
if proxy is not nonexistent:
339+
if id_pack in self._proxy_cache:
342340
proxy = self._proxy_cache[id_pack]
343341
proxy.____refcount__ += 1 # if cached then remote incremented refcount, so sync refcount
344342
else:

0 commit comments

Comments
 (0)