summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2014-12-12 09:40:39 +0200
committerMarius Gedminas <marius@gedmin.as>2014-12-12 09:40:39 +0200
commit20d4de0430cdc13da4be9d862f74133b8e7a27cd (patch)
tree53c06b20fc5bc356a75c37a4a9d528a6790d5ad0 /docs
parenta6c144983cb66f1cd6b03f27794abeaf316468d4 (diff)
downloadzope-component-20d4de0430cdc13da4be9d862f74133b8e7a27cd.tar.gz
Fix dict order issues with 'tox -e docs'
Diffstat (limited to 'docs')
-rw-r--r--docs/factory.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/factory.rst b/docs/factory.rst
index a8dff4f..3e90856 100644
--- a/docs/factory.rst
+++ b/docs/factory.rst
@@ -43,7 +43,7 @@ Now we use the factory to create the instance
.. doctest::
- >>> kl = factory(1, 2, foo=3, bar=4)
+ >>> kl = factory(1, 2, foo=3)
and make sure that the correct class was used to create the object:
@@ -52,14 +52,14 @@ and make sure that the correct class was used to create the object:
>>> kl.__class__
<class 'Klass'>
-Since we passed in a couple positional and keyword arguments
+Since we passed in a couple positional and a keyword argument
.. doctest::
>>> kl.args
(1, 2)
>>> kl.kw
- {'foo': 3, 'bar': 4}
+ {'foo': 3}
>>> factory2(3)
3
@@ -123,13 +123,13 @@ Creating an Object
.. doctest::
- >>> kl = zope.component.createObject('klass', 1, 2, foo=3, bar=4)
+ >>> kl = zope.component.createObject('klass', 1, 2, foo=3)
>>> isinstance(kl, Klass)
True
>>> kl.args
(1, 2)
>>> kl.kw
- {'foo': 3, 'bar': 4}
+ {'foo': 3}
Accessing Provided Interfaces
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~