Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel committed Jul 1, 2021
1 parent 35f4997 commit e5a18e3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cloudpickle/cloudpickle_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,8 @@ def _function_getnewargs(self, func):
# cloudpickle.dumps([f1, f2])). There is no such limitation when using
# CloudPickler.dump, as long as the multiple invocations are bound to
# the same CloudPickler instance.
base_globals = self.globals_ref.setdefault(id(func.__globals__), {})
base_globals = _FuncMetadataGlobals(
func,
shared_namespace=base_globals,
)
shared_ns = self.globals_ref.setdefault(id(func.__globals__), {})
base_globals = _FuncMetadataGlobals(func, shared_namespace=shared_ns)

# Do not bind the free variables before the function is created to
# avoid infinite recursion.
Expand Down

0 comments on commit e5a18e3

Please sign in to comment.