Skip to content

Commit

Permalink
Merge pull request #2198 from plone/py3-class-type
Browse files Browse the repository at this point in the history
Fix vanished ClassType import
  • Loading branch information
jensens committed Nov 1, 2017
2 parents 561bc78 + 8b34bce commit b45d361
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ New Features:

Bug Fixes:

- Increase compatibility with Python3.
[ale-rt]

- Show example for expression in actions control panel.
[maurits]

Expand Down
7 changes: 6 additions & 1 deletion Products/CMFPlone/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from Products.CMFPlone.log import log
from Products.CMFPlone.log import log_deprecated
from Products.CMFPlone.log import log_exc
from types import ClassType
from urlparse import urlparse
from webdav.interfaces import IWriteLock
from zope import schema
Expand All @@ -57,6 +56,12 @@
import zope.interface


try:
from types import ClassType
except ImportError:
ClassType = type


deprecated_import(
"Import from Products.CMFPlone.defaultpage instead",
isDefaultPage='Products.CMFPlone.defaultpage:check_default_page_via_view',
Expand Down

0 comments on commit b45d361

Please sign in to comment.