sphinx.application.Sphinx.add_search_language raises AssertionError for correct type of argument. Closes #1563

This commit is contained in:
Takayuki Shimizukawa 2014-09-09 17:27:00 +09:00
parent 294c83d8f0
commit 7b9c9586bd
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,12 @@
Release 1.2.4 (in development)
==============================
Bugs fixed
----------
* #1563: :meth:`~sphinx.application.Sphinx.add_search_language` raises
AssertionError for correct type of argument. Thanks to rikoman.
Release 1.2.3 (released Sep 1, 2014)
====================================

View File

@ -615,7 +615,7 @@ class Sphinx(object):
def add_search_language(self, cls):
self.debug('[app] adding search language: %r', cls)
from sphinx.search import languages, SearchLanguage
assert isinstance(cls, SearchLanguage)
assert issubclass(cls, SearchLanguage)
languages[cls.lang] = cls