Skip to content

Commit

Permalink
api/decorator.rst compatibility with PyPy2
Browse files Browse the repository at this point in the history
It wants to print `<__builtin__.Foo ...>` instead of just `<Foo ...>`.
  • Loading branch information
jamadden committed Sep 7, 2017
1 parent aa08439 commit 61a37dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api/decorator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`:

Expand All @@ -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.)
Expand Down Expand Up @@ -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`:

Expand Down

0 comments on commit 61a37dd

Please sign in to comment.