Commit e80eff57 authored by Łukasz Nowak's avatar Łukasz Nowak

fixup! squash! taskdistribution: Wrap in xmlrpclib.Binary if needed

parent dd8ff984
......@@ -97,9 +97,9 @@ def patchRPCParser(error_handler):
def binarize_args(arg):
# Converts recursively basestring arg into Binary
if isinstance(arg, basestring):
if isinstance(arg, unicode):
arg = arg.encode('utf-8')
if isinstance(arg, basestring):
return xmlrpclib.Binary(arg)
if isinstance(arg, (list, tuple)):
return map(binarize_args, arg)
......
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