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/socketexample.rst | |
| 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/socketexample.rst')
| -rw-r--r-- | docs/socketexample.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/socketexample.rst b/docs/socketexample.rst index 4638667..e03dbab 100644 --- a/docs/socketexample.rst +++ b/docs/socketexample.rst @@ -673,10 +673,10 @@ always get the global site manager using the API: >>> from zope.component import globalSiteManager >>> gsm is globalSiteManager True - >>> from zope.component.interfaces import IComponentLookup + >>> from zope.interface.interfaces import IComponentLookup >>> IComponentLookup.providedBy(gsm) True - >>> from zope.component.interfaces import IComponents + >>> from zope.interface.interfaces import IComponents >>> IComponents.providedBy(gsm) True |
