Skip to content

Commit

Permalink
fix: remove fallback import
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 23, 2023
1 parent c1523c7 commit ff042a3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plone/registry/recordsproxy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from collections.abc import MutableMapping
from plone.registry.interfaces import IRecordsProxy
from zope.interface import alsoProvides
from zope.interface import implementer
Expand All @@ -7,11 +8,6 @@
import re


try:
from UserDict import DictMixin
except ImportError:
from collections.abc import MutableMapping as DictMixin

_marker = object()


Expand Down Expand Up @@ -59,7 +55,7 @@ def __repr__(self):
)


class RecordsProxyCollection(DictMixin):
class RecordsProxyCollection(MutableMapping):
"""A proxy that maps a collection of RecordsProxy objects"""

_validkey = re.compile(r"([a-zA-Z][a-zA-Z0-9_.-]*)$").match
Expand Down

0 comments on commit ff042a3

Please sign in to comment.