Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BTrees
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
BTrees
Commits
800a35f1
Commit
800a35f1
authored
Dec 12, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fsBTrees don't get merged.
parent
91007b38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
BTrees/fsBTree.py
BTrees/fsBTree.py
+0
-3
BTrees/tests/test_fsBTree.py
BTrees/tests/test_fsBTree.py
+0
-4
No files found.
BTrees/fsBTree.py
View file @
800a35f1
...
...
@@ -46,9 +46,6 @@ class fsBucketPy(Bucket):
_to_key
=
_to_key
_to_value
=
_to_value
def
MERGE_WEIGHT
(
self
,
value
,
weight
):
return
value
def
toString
(
self
):
return
''
.
join
(
self
.
_keys
)
+
''
.
join
(
self
.
_values
)
...
...
BTrees/tests/test_fsBTree.py
View file @
800a35f1
...
...
@@ -23,10 +23,6 @@ class fsBucketTests(unittest.TestCase):
def
_makeOne
(
self
,
*
args
,
**
kw
):
return
self
.
_getTargetClass
()(
*
args
,
**
kw
)
def
test_MERGE_WEIGHT
(
self
):
bucket
=
self
.
_makeOne
()
self
.
assertEqual
(
bucket
.
MERGE_WEIGHT
(
42
,
17
),
42
)
def
test_toString
(
self
):
bucket
=
self
.
_makeOne
([(
c
*
2
,
c
*
6
)
for
c
in
'abcdef'
])
self
.
assertEqual
(
bucket
.
toString
(),
...
...
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