Commits

Matt Chaput  committed 59fb285

Fixed some Sphinx/docstring issues.

  • Participants
  • Parent commits ccb4526

Comments (0)

Files changed (2)

File docs/source/searching.rst

 Time limited searches
 =====================
 
-::
+To limit the amount of time a search can take::
+
     from whoosh.collectors import TimeLimitCollector, TimeLimit
     
     with myindex.searcher() as s:

File src/whoosh/collectors.py

 
 class TimeLimitCollector(WrappingCollector):
     """A collector that raises a :class:`TimeLimit` exception if the search
-    does not complete within a certain number of seconds.
+    does not complete within a certain number of seconds::
     
-    ::
         uc = collectors.UnlimitedCollector()
         tlc = TimeLimitedCollector(uc, timelimit=5.8)
         try: