summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2017-09-07 10:30:44 -0500
committerJason Madden <jamadden@gmail.com>2017-09-07 11:05:29 -0500
commit61a37dd8d7eb2799ff593447d9f61932ea68869e (patch)
treed064174c4b74f1c7049f1235c28917715c4bfd82 /docs
parentaa0843930d15345982aab209bed72b9fa4bd64f4 (diff)
downloadzope-security-61a37dd8d7eb2799ff593447d9f61932ea68869e.tar.gz
api/decorator.rst compatibility with PyPy2
It wants to print `<__builtin__.Foo ...>` instead of just `<Foo ...>`.
Diffstat (limited to 'docs')
-rw-r--r--docs/api/decorator.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api/decorator.rst b/docs/api/decorator.rst
index c05c692..59a02bd 100644
--- a/docs/api/decorator.rst
+++ b/docs/api/decorator.rst
@@ -57,7 +57,7 @@ Using `selectChecker()`, we can confirm that a `Foo` object uses
... fooChecker.check(foo, 'b') # doctest: +ELLIPSIS
... except ForbiddenAttribute as e:
... e
- ForbiddenAttribute('b', <Foo object ...>)
+ ForbiddenAttribute('b', <...Foo object ...>)
and that a `Wrapper` object uses `wrappeChecker`:
@@ -71,7 +71,7 @@ and that a `Wrapper` object uses `wrappeChecker`:
... wrapperChecker.check(wrapper, 'a') # doctest: +ELLIPSIS
... except ForbiddenAttribute as e:
... e
- ForbiddenAttribute('a', <Foo object ...>)
+ ForbiddenAttribute('a', <...Foo object ...>)
(Note that the object description says `Foo` because the object is a
proxy and generally looks and acts like the object it's proxying.)
@@ -103,7 +103,7 @@ illustrate, we'll proxify `foo`:
... secure_foo.b # doctest: +ELLIPSIS
... except ForbiddenAttribute as e:
... e
- ForbiddenAttribute('b', <Foo object ...>)
+ ForbiddenAttribute('b', <...Foo object ...>)
when we wrap the secured `foo`: