Skip to content

Commit

Permalink
Update to current persistent API (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
wosc authored Dec 5, 2024
1 parent bed92c3 commit 8e345c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
5.1 (unreleased)
================

- Nothing changed yet.
- Update to ``persistent`` 6.0 API usage


5.0 (2023-06-29)
Expand Down
4 changes: 2 additions & 2 deletions src/zope/principalannotation/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
__docformat__ = 'restructuredtext'
from BTrees.OOBTree import OOBTree
from persistent import Persistent
from persistent.dict import PersistentDict
from persistent.mapping import PersistentMapping
from zope.annotation.interfaces import IAnnotations
from zope.component import queryNextUtility
from zope.location import Location
Expand Down Expand Up @@ -81,7 +81,7 @@ class Annotations(Persistent, Location):

def __init__(self, principalId, store=None):
self.principalId = principalId
self.data = PersistentDict() # We don't really expect that many
self.data = PersistentMapping() # We don't really expect that many

# _v_store is used to remember a mapping object that we should
# be saved in if we ever change
Expand Down

0 comments on commit 8e345c7

Please sign in to comment.