Commits

Anonymous committed 1701645

import with_statement from __future__, fixes #268

Comments (0)

Files changed (3)

src/whoosh/filedb/multiproc.py

 # those of the authors and should not be interpreted as representing official
 # policies, either expressed or implied, of Matt Chaput.
 
-
+from __future__ import with_statement
 import os, tempfile
 from multiprocessing import Process, Queue, cpu_count
 

src/whoosh/query/nested.py

 # those of the authors and should not be interpreted as representing official
 # policies, either expressed or implied, of Matt Chaput.
 
+from __future__ import with_statement
+
 from whoosh import matching
 from whoosh.compat import text_type, u, xrange
 from whoosh.query import qcore

src/whoosh/scoring.py

 This module contains classes for scoring (and sorting) search results.
 """
 
-from __future__ import division
+from __future__ import division, with_statement
 from math import log, pi
 
 from whoosh.compat import iteritems