Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
1e8f93fb
Commit
1e8f93fb
authored
May 18, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pack at the end even if the # of msgs isn't an exact multiple of
PACK_INTERVAL.
parent
eb8de680
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/python/Products/ZCTextIndex/tests/mailtest.py
lib/python/Products/ZCTextIndex/tests/mailtest.py
+2
-2
No files found.
lib/python/Products/ZCTextIndex/tests/mailtest.py
View file @
1e8f93fb
...
@@ -84,7 +84,7 @@ def index(rt, mboxfile, db):
...
@@ -84,7 +84,7 @@ def index(rt, mboxfile, db):
rt
[
"documents"
]
=
docs
=
IOBTree
()
rt
[
"documents"
]
=
docs
=
IOBTree
()
get_transaction
().
commit
()
get_transaction
().
commit
()
mbox
=
mailbox
.
UnixMailbox
(
open
(
mboxfile
))
mbox
=
mailbox
.
UnixMailbox
(
open
(
mboxfile
,
'rb'
))
if
VERBOSE
:
if
VERBOSE
:
print
"opened"
,
mboxfile
print
"opened"
,
mboxfile
if
not
NUM
:
if
not
NUM
:
...
@@ -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
and
i
%
PACK_INTERVAL
!=
0
:
if
PACK_INTERVAL
:
if
VERBOSE
>=
2
:
if
VERBOSE
>=
2
:
print
"packing one last time..."
print
"packing one last time..."
p0
=
time
.
clock
()
p0
=
time
.
clock
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment