Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
fd48702d
Commit
fd48702d
authored
Jul 14, 2005
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove BTrees/convert.py, which hasn't been of use for years.
parent
c6e06365
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
34 deletions
+4
-34
MANIFEST
MANIFEST
+0
-1
NEWS.txt
NEWS.txt
+4
-0
src/BTrees/convert.py
src/BTrees/convert.py
+0
-33
No files found.
MANIFEST
View file @
fd48702d
...
...
@@ -61,7 +61,6 @@ src/BTrees/_OOBTree.c
src/BTrees/__init__.py
src/BTrees/_fsBTree.c
src/BTrees/check.py
src/BTrees/convert.py
src/BTrees/intkeymacros.h
src/BTrees/intvaluemacros.h
src/BTrees/objectkeymacros.h
...
...
NEWS.txt
View file @
fd48702d
...
...
@@ -118,6 +118,10 @@ BTrees
- (3.5a4) Collector 1829. Clarified that the ``minKey()`` and ``maxKey()``
methods raise an exception if no key exists satsifying the constraints.
- (3.5a4) The ancient ``convert.py`` script was removed. It was intended to
convert "old" BTrees to "new" BTrees, but the "old" BTree implementation
was removed from ZODB years ago.
What's new in ZODB3 3.4.1a6?
============================
...
...
src/BTrees/convert.py
deleted
100644 → 0
View file @
c6e06365
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
#
##############################################################################
# TODO: does this script still serve a purpose? Writing this in 2005,
# "old btree" doesn't mean much to me.
import
transaction
def
convert
(
old
,
new
,
threshold
=
200
,
f
=
None
):
"Utility for converting old btree to new"
n
=
0
for
k
,
v
in
old
.
items
():
if
f
is
not
None
:
v
=
f
(
v
)
new
[
k
]
=
v
n
=
n
+
1
if
n
>
threshold
:
transaction
.
savepoint
()
old
.
_p_jar
.
cacheMinimize
()
n
=
0
transaction
.
savepoint
()
old
.
_p_jar
.
cacheMinimize
()
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