Hide the highlight not implemented warning when highlight is False

This commit is contained in:
David Sauve 2009-06-18 13:22:39 -04:00
parent cb8c1fec90
commit 7cd5335df5

View file

@ -262,7 +262,7 @@ class SearchBackend(BaseSearchBackend):
if sort_by is not None:
warnings.warn("Sorting has not been implemented yet.", Warning, stacklevel=2)
if highlight is not None:
if highlight is not False:
warnings.warn("Highlight has not been implemented yet.", Warning, stacklevel=2)
database = xapian.Database(self.path)