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