Skip to content

Commit ecc6491

Browse files
committed
refactor: simplify import
1 parent f1ae318 commit ecc6491

File tree

1 file changed

+1
-3
lines changed
  • src/plone/restapi/services/history

1 file changed

+1
-3
lines changed

src/plone/restapi/services/history/get.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ def reply(self):
2828
# Traverse to historical version
2929
if self.version:
3030
parent = aq_parent(aq_inner(self.context))
31-
if "IPortletAssignment" in dir(
32-
plone.portlets.interfaces
33-
) and not IPortletAssignment.providedBy(parent):
31+
if not IPortletAssignment.providedBy(parent):
3432
alsoProvides(parent, IPortletAssignment)
3533
serializer = queryMultiAdapter(
3634
(self.context, self.request), ISerializeToJson

0 commit comments

Comments
 (0)