fix google.find

This commit is contained in:
j 2008-05-08 12:38:11 +02:00
parent f7735d30cd
commit b9634887ff

View file

@ -44,7 +44,7 @@ def find(query, max_results=DEFAULT_MAX_RESULTS):
results = []
for match in re.compile(link_re, re.DOTALL).finditer(data):
(name, url, desc) = match.group('name', 'url', 'desc')
results.append([(stripTags(name), url, stripTags(desc))])
results.append((stripTags(name), url, stripTags(desc)))
if len(results) > max_results:
results = results[:max_results]
return results