Skip to content

Commit

Permalink
Deprecate zope.site.hooks with zope.deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Feb 23, 2016
1 parent 0d072a3 commit a0442e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changes
4.0.1 (unreleased)
------------------

- TBD
- Deprecate ``zope.site.hooks`` with ``zope.deprecation``.
[thet]


4.0.0 (2014-12-24)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def alltests():
'setuptools',
'zope.annotation',
'zope.container',
'zope.deprecation',
'zope.security',
'zope.component',
'zope.event',
Expand Down
14 changes: 2 additions & 12 deletions src/zope/site/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,5 @@
"""Hooks for getting and setting a site in the thread global namespace.
"""
__docformat__ = 'restructuredtext'

from zope.component.hooks import (read_property,
SiteInfo,
siteinfo,
setSite,
getSite,
getSiteManager,
adapter_hook,
setHooks,
resetHooks,
setSite,
clearSite) # BBB
from zope.deprecation import moved
moved('zope.component.hooks', 'Version 4.1')

0 comments on commit a0442e7

Please sign in to comment.