From b37debda452a095f58641a942bc69780565009a0 Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 6 May 2009 04:33:45 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode/python.py b/mode/python.py index 3f5ba6a..e831f8a 100644 --- a/mode/python.py +++ b/mode/python.py @@ -412,7 +412,7 @@ class PythonBrmFindReferences(Method): for tpl in tokens: lines.append('%-*s %3d%% confidence' % (l, tpl[0], tpl[1])) - if n == 0: + if not tokens: w.set_error('no references found') return