Skip to content

Commit

Permalink
Deprecate zope.app.broken.interfaces.IBroken.
Browse files Browse the repository at this point in the history
Please import it directly from ZODB.interfaces.
  • Loading branch information
Michael Howitz committed Sep 22, 2020
1 parent 48f422f commit e9e96f6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
4.2 (unreleased)
================

- Nothing changed yet.
- Deprecate ``zope.app.broken.interfaces.IBroken``. Please import it directly
from ``ZODB.interfaces``.


4.1 (2020-03-31)
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ def read(*rnames):
namespace_packages=['zope', 'zope.app'],
install_requires=[
'setuptools',
'zope.deferredimport',
'zope.interface',
'zope.location',
'zope.security',
'zope.annotation',
'zope.processlifetime',
'ZODB',
'ZODB >= 3.10.0a1',
],
extras_require={
'test': [
Expand Down
11 changes: 7 additions & 4 deletions src/zope/app/broken/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
"""zope.app.broken interfaces.
"""

__docformat__ = "reStructuredText"
from zope.deferredimport import deprecated

from ZODB.interfaces import IBroken

__all__ = ["IBroken"]
# BBB zope.app.broken 5.0: Names now moved to ZODB itself.
deprecated(
'Please import from ZODB.interfaces.'
' This module will go away in zope.app.broken 5.0.',
IBroken='ZODB.interfaces:IBroken',
)

0 comments on commit e9e96f6

Please sign in to comment.