Fixed error on get_terms that caused the last term to end in '\n'.

This commit is contained in:
Jorge C. Leitão 2014-05-10 23:24:17 +02:00
parent a9d144290c
commit f81ba0021c

View file

@ -21,7 +21,7 @@ from core.tests.mocks import MockSearchResult
def get_terms(backend, *args):
result = subprocess.check_output(['delve'] + list(args) + [backend.path], env=os.environ.copy())
result = result.split(": ")[1]
result = result.split(": ")[1].strip()
return result.split(" ")