def RebuildProxy(func, token, serializer, kwds):
 server = getattr(process.current_process(), '_manager_server', None)
 if (server and (server.address == token.address)):
  util.debug('Rebuild a proxy owned by manager, token=%r', token)
  kwds['manager_owned'] = True
  if (token.id not in server.id_to_local_proxy_obj):
   server.id_to_local_proxy_obj[token.id] = server.id_to_obj[token.id]
 incref = (kwds.pop('incref', True) and (not getattr(process.current_process(), '_inheriting', False)))
 return func(token, serializer, incref=incref, **kwds)

def RebuildProxy ( func , token , serializer , kwds ) : server = getattr ( process . current_process ( ) , '_manager_server' , None ) if ( server and ( server . address == token . address ) ) : util . debug ( 'Rebuild a proxy owned by manager, token=%r' , token ) kwds [ 'manager_owned' ] = True if ( token . id not in server . id_to_local_proxy_obj ) : server . id_to_local_proxy_obj [ token . id ] = server . id_to_obj [ token . id ] incref = ( kwds . pop ( 'incref' , True ) and ( not getattr ( process . current_process ( ) , '_inheriting' , False ) ) ) return func ( token , serializer , incref = incref , ** kwds )
function used for unpickling proxy objects .