Commit 269519a8 authored by Craig Citro's avatar Craig Citro

Whoops, forgot to test after previous patch.

parent 144c66ee
......@@ -2282,7 +2282,7 @@ def best_match(args, functions, pos=None):
# Optimize the most common case of no overloading...
if len(candidates) == 1:
return candidates[0]
return candidates[0][0]
elif len(candidates) == 0:
if len(errors) == 1 and pos is not None:
error(pos, errors[0][1])
......
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