From 18fe47dbf50936c9193715c3b954f19a9ff250d3 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 20 Oct 2016 03:18:31 -0500 Subject: [PATCH] Fuck python3 --- disco/util/serializer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disco/util/serializer.py b/disco/util/serializer.py index e248490..a481a9d 100644 --- a/disco/util/serializer.py +++ b/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)