~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/search.py

  • Committer: Martin Albisetti
  • Date: 2008-10-24 17:54:06 UTC
  • mfrom: (230.1.2 pep8)
  • Revision ID: martin.albisetti@canonical.com-20081024175406-73bpc73m7pshat9c
PEP8 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
except ImportError:
26
26
    _mod_index = None
27
27
 
 
28
 
28
29
def search_revisions(branch, query_list, suggest=False):
29
30
    """
30
31
    Search using bzr-search plugin to find revisions matching the query.
31
32
    This can either suggest query terms, or revision ids.
32
 
    
 
33
 
33
34
    param branch: branch object to search in
34
35
    param query_list: string to search
35
36
    param suggest: Optional flag to request suggestions instead of results
42
43
    except errors.NoSearchIndex:
43
44
        return None # None indicates could-not-search
44
45
    query = query_list.split(' ')
45
 
    query = [(term,) for term in query]
 
46
    query = [(term) for term in query]
46
47
    revid_list = []
47
48
    index._branch.lock_read()
48
49