diff options
| author | Jason Madden <jamadden@gmail.com> | 2017-11-08 07:31:17 -0600 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2017-11-08 07:31:17 -0600 |
| commit | 741972ee209a9a6dad7696a1ac8e02c0d2e7bcdc (patch) | |
| tree | 4ddf59a62baf3f8371e6b969e5ef633e04647a22 /docs/api | |
| parent | b7235d10c9f73fe4c86961f8f249ac677491d982 (diff) | |
| download | zope-component-741972ee209a9a6dad7696a1ac8e02c0d2e7bcdc.tar.gz | |
Produce deprecation warnings for deprecated names in interfaces.py and registry.pyremove-unused-imports
And also in hookable.py
Do this using zope.deferredimport and zope.deprecation, two new
dependencies. This introduces a transitive dependency on zope.proxy,
but that was already part of the 'security' extra. zope.proxy runs
on pypy but it doesn't yet support making the C extension optional (https://github.com/zopefoundation/zope.proxy/issues/26)
Also drop the use of _compat._BLANK everywhere and just use the literal.
Diffstat (limited to 'docs/api')
| -rw-r--r-- | docs/api/sitemanager.rst | 5 | ||||
| -rw-r--r-- | docs/api/utility.rst | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/docs/api/sitemanager.rst b/docs/api/sitemanager.rst index 6e683ec..7b77699 100644 --- a/docs/api/sitemanager.rst +++ b/docs/api/sitemanager.rst @@ -7,7 +7,7 @@ Site Manager APIs .. doctest:: - >>> from zope.component.interfaces import IComponentLookup + >>> from zope.interface.interfaces import IComponentLookup >>> from zope.component.globalregistry import base >>> from zope.component import getGlobalSiteManager >>> gsm = getGlobalSiteManager() @@ -37,7 +37,7 @@ Site Manager APIs .. doctest:: >>> from zope.component import getSiteManager - >>> from zope.component.interfaces import IComponentLookup + >>> from zope.interface.interfaces import IComponentLookup >>> IComponentLookup.providedBy(getSiteManager()) True @@ -85,4 +85,3 @@ Site Manager APIs ... ComponentLookupError: ('Could not adapt', <instance Ob>, <InterfaceClass zope...interfaces.IComponentLookup>) - diff --git a/docs/api/utility.rst b/docs/api/utility.rst index 0d7ba1c..a6000b8 100644 --- a/docs/api/utility.rst +++ b/docs/api/utility.rst @@ -200,7 +200,7 @@ Now we create two utilities and insert them in our folder hierarchy: .. doctest:: - >>> from zope.component.interfaces import IComponentLookup + >>> from zope.interface.interfaces import IComponentLookup >>> util1 = MyUtility('one', sm1) >>> sm1.registerUtility(util1, IMyUtility, 'myutil') >>> IComponentLookup(util1) is sm1 |
