Skip to content

Commit

Permalink
six
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Feb 29, 2024
1 parent 0e0ada5 commit 23554ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
install_requires=[
"setuptools",
# -*- Extra requirements: -*-
"six",
"plone.uuid",
],
extras_require={"test": ["plone.app.testing", "plone.api", "plone.app.contenttypes"]},
Expand Down
4 changes: 2 additions & 2 deletions src/collective/purgebyid/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from collective.purgebyid import logger
from collective.purgebyid.interfaces import IInvolvedID
from past.builtins import basestring
from six import string_types
from zope.annotation.interfaces import IAnnotations


Expand All @@ -25,7 +25,7 @@ def mark_involved_objects(request, objs, stoponfirst=False):
:type stoponfirst: bool, optional
"""
for obj in objs:
if isinstance(obj, basestring):
if isinstance(obj, string_types):
ids = [obj]
else:
ids = IInvolvedID(obj, None)
Expand Down

0 comments on commit 23554ce

Please sign in to comment.