Skip to content

Commit

Permalink
Fix tests and deprecation warnings.
Browse files Browse the repository at this point in the history
Fixes #28
  • Loading branch information
jamadden committed Oct 19, 2018
1 parent 7aed99d commit cb96cb3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/zope/app/apidoc/codemodule/browser/README.rst
Expand Up @@ -590,7 +590,7 @@ data. First we need to create an object though; let's use a root
folder:

>>> rootFolder
<zope.site.folder.Folder object at ...>
<...Folder object at ...>

Now we instantiate the view

Expand Down
2 changes: 1 addition & 1 deletion src/zope/app/apidoc/codemodule/browser/introspector.rst
Expand Up @@ -151,7 +151,7 @@ Now the introspector will show the file and allow you to click on it:
</b>
<br />
<a href="++items++file.txt/@@introspector.html">
<code>&lt;zope.app.file.file.File object at ...&gt;</code>
<code>&lt;...File object at ...&gt;</code>
</a>
(<span>type:</span>
<a href="http://localhost/++apidoc++/Code/zope/container/contained/ContainedProxy/index.html">
Expand Down
4 changes: 2 additions & 2 deletions src/zope/app/apidoc/component.rst
Expand Up @@ -374,7 +374,7 @@ Let's first create an adapter registration:
... class MyResult(object):
... pass

>>> from zope.component.registry import AdapterRegistration
>>> from zope.interface.registry import AdapterRegistration
>>> reg = AdapterRegistration(None, (IFoo, IBar), IResult, 'FooToResult',
... MyResult, 'doc info')

Expand Down Expand Up @@ -428,7 +428,7 @@ This function can also handle subscription registrations, which are pretty
much like adapter registrations, except that they do not have a name. So let's
see how the function handles subscriptions:

>>> from zope.component.registry import HandlerRegistration
>>> from zope.interface.registry import HandlerRegistration
>>> reg = HandlerRegistration(None, (IFoo, IBar), '', MyResult, 'doc info')

>>> pprint(component.getAdapterInfoDictionary(reg))
Expand Down
2 changes: 1 addition & 1 deletion src/zope/app/apidoc/presentation.rst
Expand Up @@ -387,7 +387,7 @@ dictionary for the specified registration.

Let's first create a registration:

>>> from zope.component.registry import AdapterRegistration
>>> from zope.interface.registry import AdapterRegistration
>>> reg = AdapterRegistration(None, (IFile, Interface, IHTTPRequest),
... Interface, 'view.html', Factory, 'reg info')

Expand Down

0 comments on commit cb96cb3

Please sign in to comment.