Commit 328d4a2c authored by Łukasz Nowak's avatar Łukasz Nowak

fixup! taskdistribution: Wrap in xmlrpclib.Binary if needed

Support sets
parent e80eff57
......@@ -101,7 +101,7 @@ def binarize_args(arg):
if isinstance(arg, unicode):
arg = arg.encode('utf-8')
return xmlrpclib.Binary(arg)
if isinstance(arg, (list, tuple)):
if isinstance(arg, (list, tuple, set)):
return map(binarize_args, arg)
if isinstance(arg, dict):
return {k: binarize_args(v) for k, v in arg.iteritems()}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment