Browse Source

Fuck python3

pull/9/head
Andrei 9 years ago
parent
commit
18fe47dbf5
  1. 3
      disco/util/serializer.py

3
disco/util/serializer.py

@ -68,6 +68,7 @@ def dump_function(func):
)
def load_function((code, name, defaults, closure)):
def load_function(args):
code, name, defaults, closure = args
closure = tuple(map(load_cell, closure))
return types.FunctionType(code, globals(), name, defaults, closure)

Loading…
Cancel
Save