Skip to content

Commit

Permalink
test_UIBTree
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Feb 14, 2020
1 parent 24d0bc5 commit e4c44f7
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 197 deletions.
6 changes: 6 additions & 0 deletions BTrees/Interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,12 @@ class IUnsignedUnsignedBTreeModule(_IMergeBTreeModule, IMergeIntegerKey):
"""


class IUnsignedIntegerBTreeModule(_IMergeBTreeModule, IMergeIntegerKey):
"""
As for `IIntegerIntegerBTreeModule` with unsigned integers for keys only.
"""


class IObjectObjectBTreeModule(IBTreeModule, IMerge):
"""keys, or set values, are objects; values are also objects.
Expand Down
4 changes: 2 additions & 2 deletions BTrees/UIBTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from zope.interface import moduleProvides

from .Interfaces import IIntegerIntegerBTreeModule
from .Interfaces import IUnsignedIntegerBTreeModule
from ._base import Bucket
from ._base import MERGE
from ._base import MERGE_WEIGHT_numeric
Expand Down Expand Up @@ -110,4 +110,4 @@ class UITreeIteratorPy(_TreeIterator):

_fix_pickle(globals(), __name__)

moduleProvides(IIntegerIntegerBTreeModule)
moduleProvides(IUnsignedIntegerBTreeModule)
Loading

0 comments on commit e4c44f7

Please sign in to comment.