Commits

Rob Ruana committed ca8403a

Closes #1413: Moves SearchEnglish import below SearchLanguage definition

  • Participants
  • Parent commits 0abbbca

Comments (0)

Files changed (1)

File sphinx/search/__init__.py

 from docutils.nodes import raw, comment, title, Text, NodeVisitor, SkipNode
 
 from sphinx.util import jsdump, rpartition
-from sphinx.search.en import SearchEnglish
 
 
 class SearchLanguage(object):
                                      word.isdigit())))
 
 
+# SearchEnglish imported after SearchLanguage is defined due to circular import
+from sphinx.search.en import SearchEnglish
+
+
 def parse_stop_word(source):
     """
     parse snowball style word list like this: