Commits

Matt Chaput  committed 7357273

Fixed old API use in spelling docs. Removed setuptools_hg from setup.py because it was messy.

  • Participants
  • Parent commits 4f6a686

Comments (0)

Files changed (2)

File docs/source/spelling.rst

 
 To create a :class:`~whoosh.spelling.SpellChecker` object::
 
-    from whoosh.store import FileStorage
+    from whoosh.filedb.filestore import FileStorage
     from whoosh.spelling import SpellChecker
     
     # FileStorage object based on the directory "spelldict"
 
     speller = SpellChecker(st, indexname="COMMON_WORDS")
 
+
 Creating the spelling dictionary
 --------------------------------
 
 once. The ``SpellChecker`` code *does not* currently guard against this
 automatically.
 
+
 Gettings suggestions
 --------------------
 
     >>> # Get only the top suggested replacement for this word
     >>> speller.suggest("woosh", number=1)
 
+
 Word scores
 -----------
 
                              for termtext, doc_freq, index_freq
                              in reader.iter_field("content"))
 
+
 Spell checking Whoosh queries
 -----------------------------
 
             if suggestions:
                 print "%s not found. Might I suggest %r?" % (termtext, suggestions)
 
+
 Updating the spelling dictionary
 --------------------------------
 
 	"Topic :: Software Development :: Libraries :: Python Modules",
 	"Topic :: Text Processing :: Indexing",
 	],
-	
-	setup_requires=["setuptools_hg"],
 )