1. Matt Chaput
  2. whoosh

Commits

while0pass  committed 5bc8a43

Disjoin accidentally joined lines in a code snippet.

  • Participants
  • Parent commits 867094c
  • Branches default

Comments (0)

Files changed (1)

File docs/source/dates.rst

View file
  • Ignore whitespace
 :class:`whoosh.fields.DATETIME` field type. Instead of passing text for the
 field in ``add_document()``, you use a Python ``datetime.datetime`` object::
 
-    from datetime import datetime, timedelta from whoosh import fields, index
+    from datetime import datetime, timedelta
+    from whoosh import fields, index
 
     schema = fields.Schema(title=fields.TEXT, content=fields.TEXT,
                            date=fields.DATETIME)