(fun)
| 57 | |
| 58 | |
| 59 | def function_by_value_reducer(fun): |
| 60 | cl_vars = inspect.getclosurevars(fun) |
| 61 | code = marshal.dumps(fun.__code__) |
| 62 | basic_def = (fun.__name__, fun.__qualname__, code, fun.__closure__) |
| 63 | global_refs = dict(cl_vars.globals) |
| 64 | get_global_references_from_nested_code(fun.__code__, fun.__globals__, global_refs) |
| 65 | fun_context = { |
| 66 | "global_refs": global_refs, |
| 67 | "defaults": fun.__defaults__, |
| 68 | "kwdefaults": fun.__kwdefaults__, |
| 69 | } |
| 70 | return function_unpickle, basic_def, fun_context, None, None, set_funcion_state |
| 71 | |
| 72 | |
| 73 | def module_unpickle(name, origin, submodule_search_locations): |
no test coverage detected