Commits

jacobmason committed f4b9b6d

moved NullSearchException to sphinx.websupport.errors

Comments (0)

Files changed (2)

sphinx/websupport/errors.py

 """
 
 __all__ = ['DocumentNotFoundError', 'SrcdirNotSpecifiedError',
-           'UserNotAuthorizedError', 'CommentNotAllowedError']
+           'UserNotAuthorizedError', 'CommentNotAllowedError',
+           'NullSearchException']
 
 class DocumentNotFoundError(Exception):
     pass
 
 class CommentNotAllowedError(Exception):
     pass
+
+
+class NullSearchException(Exception):
+    pass

sphinx/websupport/search/nullsearch.py

 """
 
 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