mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
moved NullSearchException to sphinx.websupport.errors
This commit is contained in:
parent
c5e43ca3c9
commit
3f29ff6204
@ -10,7 +10,8 @@
|
||||
"""
|
||||
|
||||
__all__ = ['DocumentNotFoundError', 'SrcdirNotSpecifiedError',
|
||||
'UserNotAuthorizedError', 'CommentNotAllowedError']
|
||||
'UserNotAuthorizedError', 'CommentNotAllowedError',
|
||||
'NullSearchException']
|
||||
|
||||
class DocumentNotFoundError(Exception):
|
||||
pass
|
||||
@ -26,3 +27,7 @@ class UserNotAuthorizedError(Exception):
|
||||
|
||||
class CommentNotAllowedError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class NullSearchException(Exception):
|
||||
pass
|
||||
|
@ -10,11 +10,12 @@
|
||||
"""
|
||||
|
||||
from sphinx.websupport.search import BaseSearch
|
||||
|
||||
class NullSearchException(Exception):
|
||||
pass
|
||||
from sphinx.websupport.errors import *
|
||||
|
||||
class NullSearch(BaseSearch):
|
||||
"""A search adapter that does nothing. Used when no search adapter
|
||||
is specified.
|
||||
"""
|
||||
def feed(self, pagename, title, doctree):
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user