From 269519a89687f0a9f4afd48d07cbaabc1d3bbdac Mon Sep 17 00:00:00 2001 From: Craig Citro Date: Tue, 9 Feb 2010 10:19:08 -0800 Subject: [PATCH] Whoops, forgot to test after previous patch. --- Cython/Compiler/PyrexTypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 1be454f7..d2e16663 100755 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -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]) -- 2.26.2