Commit f835a0c2 authored by Tim Peters's avatar Tim Peters

Revert braindead change to final pack (it was my change, so it's OK for

me to call it braindead <wink>).
parent 1e8f93fb
...@@ -121,7 +121,7 @@ def index(rt, mboxfile, db): ...@@ -121,7 +121,7 @@ def index(rt, mboxfile, db):
get_transaction().commit() get_transaction().commit()
if PACK_INTERVAL: if PACK_INTERVAL and i % PACK_INTERVAL != 0:
if VERBOSE >= 2: if VERBOSE >= 2:
print "packing one last time..." print "packing one last time..."
p0 = time.clock() p0 = time.clock()
...@@ -150,7 +150,7 @@ def query(rt, query_str): ...@@ -150,7 +150,7 @@ def query(rt, query_str):
if VERBOSE: if VERBOSE:
msg = docs[docid] msg = docs[docid]
# print 3 lines of context # print 3 lines of context
CONTEXT = 5 CONTEXT = 5000
ctx = msg.text.split("\n", CONTEXT) ctx = msg.text.split("\n", CONTEXT)
del ctx[-1] del ctx[-1]
print "-" * 60 print "-" * 60
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment