Skip to content

Commit

Permalink
refactor: simplify import
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Feb 14, 2025
1 parent f1ae318 commit ecc6491
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plone/restapi/services/history/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def reply(self):
# Traverse to historical version
if self.version:
parent = aq_parent(aq_inner(self.context))
if "IPortletAssignment" in dir(
plone.portlets.interfaces
) and not IPortletAssignment.providedBy(parent):
if not IPortletAssignment.providedBy(parent):
alsoProvides(parent, IPortletAssignment)
serializer = queryMultiAdapter(
(self.context, self.request), ISerializeToJson
Expand Down

0 comments on commit ecc6491

Please sign in to comment.