Commit c012ad6f authored by Stefan Behnel's avatar Stefan Behnel

minor code cleanups

parent a266dd6b
......@@ -4079,7 +4079,7 @@ def best_match(args, functions, pos=None, env=None):
assignable = dst_type.assignable_from(c_src_type)
if assignable:
src_type = c_src_type
needed_coercions[func] = i, dst_type
needed_coercions[func] = (i, dst_type)
if assignable:
if src_type == dst_type or dst_type.same_as(src_type):
......@@ -4097,8 +4097,7 @@ def best_match(args, functions, pos=None, env=None):
else:
score[0] += 1
else:
error_mesg = "Invalid conversion from '%s' to '%s'"%(src_type,
dst_type)
error_mesg = "Invalid conversion from '%s' to '%s'" % (src_type, dst_type)
bad_types.append((func, error_mesg))
break
else:
......
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